public static class GestureDetector.GestureAdapter extends java.lang.Object implements GestureDetector.GestureListener
GestureDetector.GestureListener.| Constructor and Description |
|---|
GestureDetector.GestureAdapter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
fling(float velocityX,
float velocityY,
int button)
Called when the user dragged a finger over the screen and lifted it.
|
boolean |
longPress(float x,
float y) |
boolean |
pan(float x,
float y,
float deltaX,
float deltaY)
Called when the user drags a finger over the screen.
|
boolean |
pinch(Vector2 initialPointer1,
Vector2 initialPointer2,
Vector2 pointer1,
Vector2 pointer2)
Called when a user performs a pinch zoom gesture.
|
boolean |
tap(float x,
float y,
int count,
int button)
Called when a tap occured.
|
boolean |
touchDown(float x,
float y,
int pointer,
int button)
Called when a finger went down on the screen or a mouse button was pressed.
|
boolean |
zoom(float initialDistance,
float distance)
Called when the user performs a pinch zoom gesture.
|
public boolean touchDown(float x,
float y,
int pointer,
int button)
GestureDetector.GestureListenertouchDown in interface GestureDetector.GestureListenerpublic boolean tap(float x,
float y,
int count,
int button)
GestureDetector.GestureListenerGestureDetector.tap in interface GestureDetector.GestureListenercount - the number of taps.public boolean longPress(float x,
float y)
longPress in interface GestureDetector.GestureListenerpublic boolean fling(float velocityX,
float velocityY,
int button)
GestureDetector.GestureListenerfling in interface GestureDetector.GestureListenervelocityX - velocity on x in secondsvelocityY - velocity on y in secondspublic boolean pan(float x,
float y,
float deltaX,
float deltaY)
GestureDetector.GestureListenerpan in interface GestureDetector.GestureListenerdeltaX - the difference in pixels to the last drag event on x.deltaY - the difference in pixels to the last drag event on y.public boolean zoom(float initialDistance,
float distance)
GestureDetector.GestureListenerzoom in interface GestureDetector.GestureListenerinitialDistance - distance between fingers when the gesture started.distance - current distance between fingers.public boolean pinch(Vector2 initialPointer1, Vector2 initialPointer2, Vector2 pointer1, Vector2 pointer2)
GestureDetector.GestureListenerpinch in interface GestureDetector.GestureListener