Fixed bug #5322 - register virtual input devices as SDL_Touch device, fix compilation

This commit is contained in:
Sylvain 2022-02-09 09:50:41 +01:00
parent 3a9bbf604e
commit 5b41844c75
No known key found for this signature in database
GPG Key ID: 5F87E02E5BC0939E
1 changed files with 1 additions and 1 deletions

View File

@ -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();
/*