Organizational Research By

Surprising Reserch Topic

Question:Hide Mouse Pointer on Android



asked Sep 13, 2013 in ANDROID by anonymous
edited Sep 12, 2013
0 votes
79 views



Related Hot Questions

2 Answers

0 votes

hide the mouse, but it will at least help prevent touch events from interfering with your joystick processing code -- not a proper solution I know, but still might help people who land on this page:

public boolean onGenericMotionEvent(MotionEvent event) {
    if ( (event.getSource() & InputDevice.SOURCE_CLASS_JOYSTICK) != 0) {
        //handle the event
        return true;
    }
    else {
        return false;
    }
}
answered Sep 13, 2013 by rajesh
edited Sep 12, 2013
0 votes

hide the mouse, but it will at least help prevent touch events from interfering with your joystick processing code -- not a proper solution I know, but still might help people who land on this page:

public boolean onGenericMotionEvent(MotionEvent event) {
    if ( (event.getSource() & InputDevice.SOURCE_CLASS_JOYSTICK) != 0) {
        //handle the event
        return true;
    }
    else {
        return false;
    }
}
answered Sep 13, 2013 by rajesh
edited Sep 12, 2013

...