public class GestureHandler
extends java.lang.Object
implements com.badlogic.gdx.input.GestureDetector.GestureListener
| Modifier and Type | Field and Description |
|---|---|
protected static int |
JUMP_THRESHOLD |
protected double |
mPrevPinchWidth |
protected static double |
PINCH_ROTATE_THRESHOLD |
protected static float |
PINCH_TILT_THRESHOLD |
protected static double |
PINCH_ZOOM_THRESHOLD |
| Constructor and Description |
|---|
GestureHandler(org.oscim.map.Map map) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
fling(float velocityX,
float velocityY,
int button) |
boolean |
longPress(float x,
float y) |
boolean |
pan(float x,
float y,
float deltaX,
float deltaY) |
boolean |
panStop(float x,
float y,
int pointer,
int button) |
boolean |
pinch(com.badlogic.gdx.math.Vector2 initialPointer1,
com.badlogic.gdx.math.Vector2 initialPointer2,
com.badlogic.gdx.math.Vector2 pointer1,
com.badlogic.gdx.math.Vector2 pointer2) |
void |
pinchStop() |
boolean |
tap(float x,
float y,
int count,
int button) |
boolean |
touchDown(float x,
float y,
int pointer,
int button) |
boolean |
zoom(float initialDistance,
float distance) |
protected double mPrevPinchWidth
protected static final int JUMP_THRESHOLD
protected static final double PINCH_ZOOM_THRESHOLD
protected static final double PINCH_ROTATE_THRESHOLD
protected static final float PINCH_TILT_THRESHOLD
public boolean touchDown(float x,
float y,
int pointer,
int button)
touchDown in interface com.badlogic.gdx.input.GestureDetector.GestureListenerpublic boolean tap(float x,
float y,
int count,
int button)
tap in interface com.badlogic.gdx.input.GestureDetector.GestureListenerpublic boolean longPress(float x,
float y)
longPress in interface com.badlogic.gdx.input.GestureDetector.GestureListenerpublic boolean fling(float velocityX,
float velocityY,
int button)
fling in interface com.badlogic.gdx.input.GestureDetector.GestureListenerpublic boolean pan(float x,
float y,
float deltaX,
float deltaY)
pan in interface com.badlogic.gdx.input.GestureDetector.GestureListenerpublic boolean zoom(float initialDistance,
float distance)
zoom in interface com.badlogic.gdx.input.GestureDetector.GestureListenerpublic boolean pinch(com.badlogic.gdx.math.Vector2 initialPointer1,
com.badlogic.gdx.math.Vector2 initialPointer2,
com.badlogic.gdx.math.Vector2 pointer1,
com.badlogic.gdx.math.Vector2 pointer2)
pinch in interface com.badlogic.gdx.input.GestureDetector.GestureListenerpublic boolean panStop(float x,
float y,
int pointer,
int button)
panStop in interface com.badlogic.gdx.input.GestureDetector.GestureListenerpublic void pinchStop()
pinchStop in interface com.badlogic.gdx.input.GestureDetector.GestureListener