[Scummvm-git-logs] scummvm master -> 9261583788d1b77e924ec7145be888e701cda8b3
lephilousophe
noreply at scummvm.org
Sun Dec 10 11:35:11 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:
9261583788 ANDROID: Check if MotionEvent is set before using it
Commit: 9261583788d1b77e924ec7145be888e701cda8b3
https://github.com/scummvm/scummvm/commit/9261583788d1b77e924ec7145be888e701cda8b3
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2023-12-10T12:33:34+01:00
Commit Message:
ANDROID: Check if MotionEvent is set before using it
e1 can be null in case of error according to documentation.
Don't trigger an event in this case.
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 af6bb9bc259..fdd9294a4aa 100644
--- a/backends/platform/android/org/scummvm/scummvm/ScummVMEventsBase.java
+++ b/backends/platform/android/org/scummvm/scummvm/ScummVMEventsBase.java
@@ -632,7 +632,7 @@ public class ScummVMEventsBase implements
float distanceX, float distanceY) {
_handler.removeMessages(MSG_LONG_TOUCH_EVENT);
// Log.d(ScummVM.LOG_TAG, "onScroll");
- if (_touchMode != TOUCH_MODE_GAMEPAD) {
+ if (_touchMode != TOUCH_MODE_GAMEPAD && e1 != null) {
// typical use:
// - move mouse cursor around (most traditional point and click games)
// - mouse look (eg. Myst 3)
More information about the Scummvm-git-logs
mailing list