From 5b41844c75a93f0091dba0e64df3e6d5f9829f7d Mon Sep 17 00:00:00 2001 From: Sylvain Date: Wed, 9 Feb 2022 09:50:41 +0100 Subject: [PATCH] Fixed bug #5322 - register virtual input devices as SDL_Touch device, fix compilation --- .../app/src/main/java/org/libsdl/app/SDLActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java b/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java index 3ee892b90..28f3c6776 100644 --- a/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java +++ b/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java @@ -1306,7 +1306,7 @@ public class SDLActivity extends Activity implements View.OnSystemUiVisibilityCh InputDevice device = InputDevice.getDevice(id); /* Allow SOURCE_TOUCHSCREEN and also Virtual InputDevices because they can send TOUCHSCREEN events */ if (device != null && ((device.getSources() & InputDevice.SOURCE_TOUCHSCREEN) == InputDevice.SOURCE_TOUCHSCREEN - || device.isVirtual()) { + || device.isVirtual())) { int touchDevId = device.getId(); /*