Android: Tracking mouse pointer movement -


Thinking that I'm using a normal mouse, to track the X and Y coordinates of mouse pointer in Android possible?

You need OnGenericMotionListener :

 < Code> Onionic Motion (...., Motion Event Me) {if (me.getToolType (0) == MotionEvent.TOOL_TYPE_MOUSE} {}   

API 14 + Required [Confirmation] I got a tablet with USB mouse and can confirm this work for mouse movement. You will flood the messages, so simple processes or sleep should be considered. < / Div>

Comments