mirror of
https://github.com/libretro/RetroArch
synced 2025-04-02 07:20:34 +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;
|
size_t motion_ptr;
|
||||||
bool keyup;
|
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;
|
return 1;
|
||||||
|
|
||||||
getaction = AMotionEvent_getAction(event);
|
getaction = AMotionEvent_getAction(event);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user