[Scummvm-git-logs] scummvm master -> e9db16350e88b2562f71c0cb6e70ddea67162784

antoniou79 noreply at scummvm.org
Sun Jul 9 17:52:30 UTC 2023


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
e9db16350e ANDROID: Don't use the long press haptic feedback for multitouch


Commit: e9db16350e88b2562f71c0cb6e70ddea67162784
    https://github.com/scummvm/scummvm/commit/e9db16350e88b2562f71c0cb6e70ddea67162784
Author: antoniou79 (a.antoniou79 at gmail.com)
Date: 2023-07-09T17:51:40+03:00

Commit Message:
ANDROID: Don't use the long press haptic feedback for multitouch

Changed paths:
    backends/platform/android/org/scummvm/scummvm/ScummVMEventsBase.java


diff --git a/backends/platform/android/org/scummvm/scummvm/ScummVMEventsBase.java b/backends/platform/android/org/scummvm/scummvm/ScummVMEventsBase.java
index 25cc46c0393..41d8b5a191a 100644
--- a/backends/platform/android/org/scummvm/scummvm/ScummVMEventsBase.java
+++ b/backends/platform/android/org/scummvm/scummvm/ScummVMEventsBase.java
@@ -158,7 +158,9 @@ public class ScummVMEventsBase implements
 			                   0,
 			                   0);
 		} else if (msg.what == MSG_LONG_TOUCH_EVENT) {
-			_currentView.performHapticFeedback(HapticFeedbackConstants.LONG_PRESS);
+			if (!_multitouchHelper.isMultitouchMode()) {
+				_currentView.performHapticFeedback(HapticFeedbackConstants.LONG_PRESS);
+			}
 		}
 	}
 
@@ -393,7 +395,7 @@ public class ScummVMEventsBase implements
 		case KeyEvent.KEYCODE_DPAD_RIGHT:
 		case KeyEvent.KEYCODE_DPAD_CENTER:
 			// NOTE 1 For now, we're handling DPAD keys as JE_GAMEPAD events, regardless the source InputDevice
-			//        We delegate these keypresses to ScummVM's keymapper as JOYSTICK_BUTTON_DPAD presses. 
+			//        We delegate these keypresses to ScummVM's keymapper as JOYSTICK_BUTTON_DPAD presses.
 			//        (JOYSTICK_BUTTON_DPAD_UP, JOYSTICK_BUTTON_DPAD_DOWN, JOYSTICK_BUTTON_DPAD_LEFT, JOYSTICK_BUTTON_DPAD_RIGHT and JOYSTICK_BUTTON_DPAD_CENTER)
 			//        By default mapped to virtual mouse (VMOUSE).
 			//        As virtual mouse, cursor may be too fast/hard to control, so it's recommended to set and use a VMOUSESLOW binding too,
@@ -578,6 +580,7 @@ public class ScummVMEventsBase implements
 
 			// check if the event can be handled as a multitouch event
 			if (_multitouchHelper.handleMotionEvent(event)) {
+				_handler.removeMessages(MSG_LONG_TOUCH_EVENT);
 				return true;
 			}
 




More information about the Scummvm-git-logs mailing list