Android onTrackballEvent and Click

Posted by Gaz on Stack Overflow See other posts from Stack Overflow or by Gaz
Published on 2010-04-08T18:02:09Z Indexed on 2010/04/08 18:53 UTC
Read the original article Hit count: 922

Filed under:

Hi Everyone,

I want to capture onClick events for the trackball on a HTC Hero. This event is firing and I can get the direction of motion of the trackball:

@Override
public boolean onTrackballEvent(MotionEvent event) {

}

How do I find out if the event was a click event?

© Stack Overflow or respective owner

Related posts about android