Android onTrackballEvent and Click
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(MotionEv开发者_如何学运维ent event) {
}
How do I find out if the event was a click event?
Try overriding onKeyDown(), watching for the KeyEvent.KEYCODE_DPAD_CENTER event.
加载中,请稍侯......
精彩评论