if (_myId != Integer.MAX_VALUE) {
_myId = Integer.MAX_VALUE;
_nMoves = 1000;
_nCurrent = 0;
// indicate to clear all single-point mouse activity
retEvents.add(new TouchEvent());
}
return retEvents;
}
int id = changedTouchPoint.getID();
if (Logger.debugging)
Logger.info("\nSinglePointGesture id=" + id + " state="
+ changedTouchPoint.getState() + " ncurrent=" + _nCurrent
+ " nMoves=" + _nMoves);
switch (changedTouchPoint.getState()) {
case TouchState.BIRTH:
_myId = id;
_birth = new TouchPoint(changedTouchPoint);
_nCurrent = 1;
_nMoves = 0;
break;
case TouchState.MOVE:
if (id != _myId)
return retEvents;
switch (++_nMoves) {
case 2:
if (checkClick(changedTouchPoint, retEvents, false))
return retEvents;
break;
}
break;
case TouchState.DEATH:
if (id != _myId)
return retEvents;
_nCurrent = 0;
if (_nMoves < 2 && checkClick(changedTouchPoint, retEvents, true))
return retEvents;
break;
}
retEvents.add(new TouchEvent(changedTouchPoint));
return retEvents;
}