From 06541211d5ac7890b0445e8d7f6a203c8112e3f3 Mon Sep 17 00:00:00 2001 From: Michael <13953785+Laserlicht@users.noreply.github.com> Date: Sat, 8 Jul 2023 19:11:26 +0200 Subject: [PATCH] Rename var --- client/eventsSDL/InputSourceTouch.cpp | 4 ++-- client/eventsSDL/InputSourceTouch.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/eventsSDL/InputSourceTouch.cpp b/client/eventsSDL/InputSourceTouch.cpp index d5325513f..3f7a696c8 100644 --- a/client/eventsSDL/InputSourceTouch.cpp +++ b/client/eventsSDL/InputSourceTouch.cpp @@ -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"); diff --git a/client/eventsSDL/InputSourceTouch.h b/client/eventsSDL/InputSourceTouch.h index 82980c42e..fb7277046 100644 --- a/client/eventsSDL/InputSourceTouch.h +++ b/client/eventsSDL/InputSourceTouch.h @@ -80,7 +80,7 @@ struct TouchInputParameters bool useRelativeMode = false; - bool hapticFeedback = false; + bool hapticFeedbackEnabled = false; }; /// Class that handles touchscreen input from SDL events