mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-03 13:01:33 +02:00
fix
This commit is contained in:
parent
06541211d5
commit
70b7f992de
@ -108,6 +108,7 @@ void InputSourceTouch::handleEventFingerDown(const SDL_TouchFingerEvent & tfinge
|
||||
{
|
||||
// FIXME: better place to update potentially changed settings?
|
||||
params.longTouchTimeMilliseconds = settings["general"]["longTouchTimeMilliseconds"].Float();
|
||||
params.hapticFeedbackEnabled = settings["general"]["hapticFeedback"].Bool();
|
||||
|
||||
lastTapTimeTicks = tfinger.timestamp;
|
||||
|
||||
@ -298,7 +299,7 @@ void InputSourceTouch::emitPinchEvent(const SDL_TouchFingerEvent & tfinger)
|
||||
}
|
||||
|
||||
void InputSourceTouch::hapticFeedback() {
|
||||
if(hapticFeedbackEnabled)
|
||||
if(hapticFeedbackEnabled) {
|
||||
#if defined(VCMI_ANDROID)
|
||||
CAndroidVMHelper vmHelper;
|
||||
vmHelper.callStaticVoidMethod(CAndroidVMHelper::NATIVE_METHODS_DEFAULT_CLASS, "hapticFeedback");
|
||||
|
@ -60,7 +60,7 @@
|
||||
},
|
||||
{
|
||||
"text": "vcmi.systemOptions.hapticFeedbackButton.hover",
|
||||
"created" : "touchscreen"
|
||||
"created" : "mobile"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user