Fixed emulated touch on Android

This also fixes laser pointer input on Meta Quest headsets
This commit is contained in:
Sam Lantinga committed 2025-09-10 14:44:26 -07:00
1 parent e035f3a480
commit 712ce16469
1 file changed
+2 -2
+2 -2
View File
@@ -57,8 +57,8 @@ SDL_TouchID Android_ConvertJavaTouchID(int touchID)
// adb shell input mouse tap 100 100 // adb shell input mouse tap 100 100
// adb shell input touchscreen tap 100 100 // adb shell input touchscreen tap 100 100
// //
// Prevent to be -1, since it's used in SDL internal for synthetic events: // Prevent the values -1 and -2, since they're used in SDL internal for synthetic events:
retval -= 1; retval -= 2;
} else { } else {
// Touch ID 0 is invalid // Touch ID 0 is invalid
retval += 1; retval += 1;