Fixed emulated touch on Android
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled

This also fixes laser pointer input on Meta Quest headsets

(cherry picked from commit 712ce16469)
This commit is contained in:
Sam Lantinga
2025-10-14 08:40:58 -07:00
parent 4cd6df1997
commit e6987e2452
+2 -2
View File
@@ -57,8 +57,8 @@ SDL_TouchID Android_ConvertJavaTouchID(int touchID)
// adb shell input mouse tap 100 100
// adb shell input touchscreen tap 100 100
//
// Prevent to be -1, since it's used in SDL internal for synthetic events:
retval -= 1;
// Prevent the values -1 and -2, since they're used in SDL internal for synthetic events:
retval -= 2;
} else {
// Touch ID 0 is invalid
retval += 1;