Package org.oscim.gdx
Class GestureHandler
java.lang.Object
org.oscim.gdx.GestureHandler
- All Implemented Interfaces:
com.badlogic.gdx.input.GestureDetector.GestureListener
public class GestureHandler
extends Object
implements com.badlogic.gdx.input.GestureDetector.GestureListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final intprotected doubleprotected static final doubleprotected static final floatprotected static final double -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanfling(float velocityX, float velocityY, int button) booleanlongPress(float x, float y) booleanpan(float x, float y, float deltaX, float deltaY) booleanpanStop(float x, float y, int pointer, int button) booleanpinch(com.badlogic.gdx.math.Vector2 initialPointer1, com.badlogic.gdx.math.Vector2 initialPointer2, com.badlogic.gdx.math.Vector2 pointer1, com.badlogic.gdx.math.Vector2 pointer2) voidbooleantap(float x, float y, int count, int button) booleantouchDown(float x, float y, int pointer, int button) booleanzoom(float initialDistance, float distance)
-
Field Details
-
mPrevPinchWidth
protected double mPrevPinchWidth -
JUMP_THRESHOLD
protected static final int JUMP_THRESHOLD- See Also:
-
PINCH_ZOOM_THRESHOLD
protected static final double PINCH_ZOOM_THRESHOLD- See Also:
-
PINCH_ROTATE_THRESHOLD
protected static final double PINCH_ROTATE_THRESHOLD- See Also:
-
PINCH_TILT_THRESHOLD
protected static final float PINCH_TILT_THRESHOLD- See Also:
-
-
Constructor Details
-
GestureHandler
public GestureHandler(org.oscim.map.Map map)
-
-
Method Details
-
touchDown
public boolean touchDown(float x, float y, int pointer, int button) - Specified by:
touchDownin interfacecom.badlogic.gdx.input.GestureDetector.GestureListener
-
tap
public boolean tap(float x, float y, int count, int button) - Specified by:
tapin interfacecom.badlogic.gdx.input.GestureDetector.GestureListener
-
longPress
public boolean longPress(float x, float y) - Specified by:
longPressin interfacecom.badlogic.gdx.input.GestureDetector.GestureListener
-
fling
public boolean fling(float velocityX, float velocityY, int button) - Specified by:
flingin interfacecom.badlogic.gdx.input.GestureDetector.GestureListener
-
pan
public boolean pan(float x, float y, float deltaX, float deltaY) - Specified by:
panin interfacecom.badlogic.gdx.input.GestureDetector.GestureListener
-
zoom
public boolean zoom(float initialDistance, float distance) - Specified by:
zoomin interfacecom.badlogic.gdx.input.GestureDetector.GestureListener
-
pinch
public 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) - Specified by:
pinchin interfacecom.badlogic.gdx.input.GestureDetector.GestureListener
-
panStop
public boolean panStop(float x, float y, int pointer, int button) - Specified by:
panStopin interfacecom.badlogic.gdx.input.GestureDetector.GestureListener
-
pinchStop
public void pinchStop()- Specified by:
pinchStopin interfacecom.badlogic.gdx.input.GestureDetector.GestureListener
-