if(type!=AINPUT_EVENT_TYPE_MOTION)
return;
+ int source = AInputEvent_getSource(event.aevent);
+ if(window.get_touch_input() && source!=AINPUT_SOURCE_MOUSE && source!=AINPUT_SOURCE_TOUCHPAD)
+ return;
+
/* Emulate a mouse with the touch events of a single finger. If more
fingers appear while the first one is held down, they are ignored, even if
the first finger is released. */