mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Merge pull request #4407 from webgeek1234/master
Fix android input where source is reported as a stylus
This commit is contained in:
commit
a321e4a97b
@ -503,7 +503,8 @@ static INLINE int android_input_poll_event_type_motion(
|
||||
size_t motion_ptr;
|
||||
bool keyup;
|
||||
|
||||
if (source & ~(AINPUT_SOURCE_TOUCHSCREEN | AINPUT_SOURCE_MOUSE))
|
||||
// Only handle events from a touchscreen or mouse
|
||||
if (!(source & (AINPUT_SOURCE_TOUCHSCREEN | AINPUT_SOURCE_MOUSE)))
|
||||
return 1;
|
||||
|
||||
getaction = AMotionEvent_getAction(event);
|
||||
|
Loading…
x
Reference in New Issue
Block a user