evaluateGestures(new GestureNode(GestureNode.Type.PAUSE, touch));
}
protected void evaluateGestures (final GestureNode node) {
// dispatch a pause event on touches that haven't moved for PAUSE_DELAY.
Handle handle = _currentMoves.remove(node.touch.id());
if (handle != null) handle.cancel();
if (node.type == GestureNode.Type.MOVE || node.type == GestureNode.Type.START) {
handle = _timer.after(_pauseDelay, new Runnable() {
@Override public void run () { onTouchPause(node.touch); }
});
_currentMoves.put(node.touch.id(), handle);