public class AndroidGestureProcessor
extends java.lang.Object
implements android.view.GestureDetector.OnGestureListener, android.view.GestureDetector.OnDoubleTapListener, android.view.ScaleGestureDetector.OnScaleGestureListener
Constructor and Description |
---|
AndroidGestureProcessor(AndroidTouchInput touchInput) |
Modifier and Type | Method and Description |
---|---|
boolean |
onDoubleTap(android.view.MotionEvent event) |
boolean |
onDoubleTapEvent(android.view.MotionEvent event) |
boolean |
onDown(android.view.MotionEvent event) |
boolean |
onFling(android.view.MotionEvent startEvent,
android.view.MotionEvent endEvent,
float velocityX,
float velocityY) |
void |
onLongPress(android.view.MotionEvent event) |
boolean |
onScale(android.view.ScaleGestureDetector scaleGestureDetector) |
boolean |
onScaleBegin(android.view.ScaleGestureDetector scaleGestureDetector) |
void |
onScaleEnd(android.view.ScaleGestureDetector scaleGestureDetector) |
boolean |
onScroll(android.view.MotionEvent startEvent,
android.view.MotionEvent endEvent,
float distX,
float distY) |
void |
onShowPress(android.view.MotionEvent event) |
boolean |
onSingleTapConfirmed(android.view.MotionEvent event) |
boolean |
onSingleTapUp(android.view.MotionEvent event) |
public AndroidGestureProcessor(AndroidTouchInput touchInput)
public boolean onDown(android.view.MotionEvent event)
onDown
in interface android.view.GestureDetector.OnGestureListener
public boolean onSingleTapUp(android.view.MotionEvent event)
onSingleTapUp
in interface android.view.GestureDetector.OnGestureListener
public void onShowPress(android.view.MotionEvent event)
onShowPress
in interface android.view.GestureDetector.OnGestureListener
public void onLongPress(android.view.MotionEvent event)
onLongPress
in interface android.view.GestureDetector.OnGestureListener
public boolean onScroll(android.view.MotionEvent startEvent, android.view.MotionEvent endEvent, float distX, float distY)
onScroll
in interface android.view.GestureDetector.OnGestureListener
public boolean onFling(android.view.MotionEvent startEvent, android.view.MotionEvent endEvent, float velocityX, float velocityY)
onFling
in interface android.view.GestureDetector.OnGestureListener
public boolean onSingleTapConfirmed(android.view.MotionEvent event)
onSingleTapConfirmed
in interface android.view.GestureDetector.OnDoubleTapListener
public boolean onDoubleTap(android.view.MotionEvent event)
onDoubleTap
in interface android.view.GestureDetector.OnDoubleTapListener
public boolean onDoubleTapEvent(android.view.MotionEvent event)
onDoubleTapEvent
in interface android.view.GestureDetector.OnDoubleTapListener
public boolean onScaleBegin(android.view.ScaleGestureDetector scaleGestureDetector)
onScaleBegin
in interface android.view.ScaleGestureDetector.OnScaleGestureListener
public boolean onScale(android.view.ScaleGestureDetector scaleGestureDetector)
onScale
in interface android.view.ScaleGestureDetector.OnScaleGestureListener
public void onScaleEnd(android.view.ScaleGestureDetector scaleGestureDetector)
onScaleEnd
in interface android.view.ScaleGestureDetector.OnScaleGestureListener