Merge pull request #4407 from webgeek1234/master

Fix android input where source is reported as a stylus
This commit is contained in:
Twinaphex 2017-01-14 05:10:17 +01:00 committed by GitHub
commit a321e4a97b

View File

@ -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);