Searched refs:previousTapEvent (Results 1 – 1 of 1) sorted by relevance
43 private MotionEvent previousTapEvent; field in ConsecutiveTapsGestureDetector92 if (previousTapEvent != null) { in onTouchEvent()93 previousTapEvent.recycle(); in onTouchEvent()95 previousTapEvent = MotionEvent.obtain(ev); in onTouchEvent()109 if (previousTapEvent == null) { in isConsecutiveTap()113 double deltaX = previousTapEvent.getX() - currentTapEvent.getX(); in isConsecutiveTap()114 double deltaY = previousTapEvent.getY() - currentTapEvent.getY(); in isConsecutiveTap()115 long deltaTime = currentTapEvent.getEventTime() - previousTapEvent.getEventTime(); in isConsecutiveTap()