public static class GestureDetector.GestureAdapter extends java.lang.Object implements GestureDetector.GestureListener
GestureDetector.GestureListener.| Constructor and Description |
|---|
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 |
panStop(float x,
float y,
int pointer,
int button)
Called when no longer panning.
|
boolean |
pinch(Vector2 initialPointer1,
Vector2 initialPointer2,
Vector2 pointer1,
Vector2 pointer2)
Called when a user performs a pinch zoom gesture.
|
void |
pinchStop()
Called when no longer pinching.
|
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) |
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)
touchDown in interface GestureDetector.GestureListenerInputProcessor.touchDown(int, int, int, int)public 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 panStop(float x,
float y,
int pointer,
int button)
GestureDetector.GestureListenerpanStop in interface GestureDetector.GestureListenerpublic 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.GestureListenerpublic void pinchStop()
GestureDetector.GestureListenerpinchStop in interface GestureDetector.GestureListener