mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
Rename var
This commit is contained in:
@@ -39,7 +39,7 @@ InputSourceTouch::InputSourceTouch()
|
||||
params.useRelativeMode = settings["general"]["userRelativePointer"].Bool();
|
||||
params.relativeModeSpeedFactor = settings["general"]["relativePointerSpeedMultiplier"].Float();
|
||||
params.longTouchTimeMilliseconds = settings["general"]["longTouchTimeMilliseconds"].Float();
|
||||
params.hapticFeedback = settings["general"]["hapticFeedback"].Bool();
|
||||
params.hapticFeedbackEnabled = settings["general"]["hapticFeedback"].Bool();
|
||||
|
||||
if (params.useRelativeMode)
|
||||
state = TouchState::RELATIVE_MODE;
|
||||
@@ -298,7 +298,7 @@ void InputSourceTouch::emitPinchEvent(const SDL_TouchFingerEvent & tfinger)
|
||||
}
|
||||
|
||||
void InputSourceTouch::hapticFeedback() {
|
||||
if(hapticFeedback)
|
||||
if(hapticFeedbackEnabled)
|
||||
#if defined(VCMI_ANDROID)
|
||||
CAndroidVMHelper vmHelper;
|
||||
vmHelper.callStaticVoidMethod(CAndroidVMHelper::NATIVE_METHODS_DEFAULT_CLASS, "hapticFeedback");
|
||||
|
@@ -80,7 +80,7 @@ struct TouchInputParameters
|
||||
|
||||
bool useRelativeMode = false;
|
||||
|
||||
bool hapticFeedback = false;
|
||||
bool hapticFeedbackEnabled = false;
|
||||
};
|
||||
|
||||
/// Class that handles touchscreen input from SDL events
|
||||
|
Reference in New Issue
Block a user