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 java.lang.Object implements com.badlogic.gdx.input.GestureDetector.GestureListener
-
-
Field Summary
Fields Modifier and Type Field Description protected static intJUMP_THRESHOLDprotected doublemPrevPinchWidthprotected static doublePINCH_ROTATE_THRESHOLDprotected static floatPINCH_TILT_THRESHOLDprotected static doublePINCH_ZOOM_THRESHOLD
-
Constructor Summary
Constructors Constructor Description GestureHandler(org.oscim.map.Map map)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanfling(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)voidpinchStop()booleantap(float x, float y, int count, int button)booleantouchDown(float x, float y, int pointer, int button)booleanzoom(float initialDistance, float distance)
-
-
-
Field Detail
-
mPrevPinchWidth
protected double mPrevPinchWidth
-
JUMP_THRESHOLD
protected static final int JUMP_THRESHOLD
- See Also:
- Constant Field Values
-
PINCH_ZOOM_THRESHOLD
protected static final double PINCH_ZOOM_THRESHOLD
- See Also:
- Constant Field Values
-
PINCH_ROTATE_THRESHOLD
protected static final double PINCH_ROTATE_THRESHOLD
- See Also:
- Constant Field Values
-
PINCH_TILT_THRESHOLD
protected static final float PINCH_TILT_THRESHOLD
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
-
-