Android: fix typo to register TOUCHSCREEN device (see #5322, #2718)

main
Sylvain 2022-02-07 22:20:05 +01:00
parent 53091e36a3
commit 14bc3bf4ec
No known key found for this signature in database
GPG Key ID: 5F87E02E5BC0939E
1 changed files with 1 additions and 1 deletions

View File

@ -1204,7 +1204,7 @@ public class SDLActivity extends Activity implements View.OnSystemUiVisibilityCh
for (int id : ids) {
InputDevice device = InputDevice.getDevice(id);
if (device != null && (device.getSources() & InputDevice.SOURCE_TOUCHSCREEN) != 0) {
if (device != null && (device.getSources() & InputDevice.SOURCE_TOUCHSCREEN) == InputDevice.SOURCE_TOUCHSCREEN) {
nativeAddTouch(device.getId(), device.getName());
}
}