1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +02:00

Rename var

This commit is contained in:
Michael
2023-07-08 19:11:26 +02:00
committed by GitHub
parent 050a22c257
commit 06541211d5
2 changed files with 3 additions and 3 deletions

View File

@@ -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");

View File

@@ -80,7 +80,7 @@ struct TouchInputParameters
bool useRelativeMode = false;
bool hapticFeedback = false;
bool hapticFeedbackEnabled = false;
};
/// Class that handles touchscreen input from SDL events