protected static class CameraInputController.CameraGestureListener extends GestureDetector.GestureAdapter
| Modifier and Type | Field and Description |
|---|---|
CameraInputController |
controller |
| Modifier | Constructor and Description |
|---|---|
protected |
CameraGestureListener() |
| 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) |
boolean |
zoom(float initialDistance,
float distance)
Called when the user performs a pinch zoom gesture.
|
panStop, pinchStoppublic CameraInputController controller
public boolean touchDown(float x,
float y,
int pointer,
int button)
touchDown in interface GestureDetector.GestureListenertouchDown in class GestureDetector.GestureAdapterInputProcessor.touchDown(int, int, int, int)public boolean tap(float x,
float y,
int count,
int button)
GestureDetector.GestureListenerGestureDetector.tap in interface GestureDetector.GestureListenertap in class GestureDetector.GestureAdaptercount - the number of taps.public boolean longPress(float x,
float y)
longPress in interface GestureDetector.GestureListenerlongPress in class GestureDetector.GestureAdapterpublic boolean fling(float velocityX,
float velocityY,
int button)
GestureDetector.GestureListenerfling in interface GestureDetector.GestureListenerfling in class GestureDetector.GestureAdaptervelocityX - 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.GestureListenerpan in class GestureDetector.GestureAdapterdeltaX - 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.GestureListenerzoom in class GestureDetector.GestureAdapterinitialDistance - 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.GestureListenerpinch in class GestureDetector.GestureAdapter