how do you detect a long click on a track pad please? I.e. on this thingy:
I can detect a short click with:
public boolean navigationClick(int status, int time) {
// XXX
return super.navigationClick(status, time);
}
And also I can detect a long click on a touch screen with:
protected boolean touchEvent(TouchEvent event) {
if (event.getEvent() == TouchEvent.GESTURE) {
TouchGesture gesture = event.getGesture();
if (gesture.getEvent() == TouchGesture.HOVER) {
// XXX
return true;
}
}
return super.touchEvent(event);
}
But I just can't find how to detect the long click on a track pad (I'd like to show a popup menu in that case)...
Thank you! Alex