Package gaiasky.input
Class MainMouseKbdListener.GaiaGestureListener
java.lang.Object
com.badlogic.gdx.input.GestureDetector.GestureAdapter
gaiasky.input.MainMouseKbdListener.GaiaGestureListener
- All Implemented Interfaces:
com.badlogic.gdx.input.GestureDetector.GestureListener
- Enclosing class:
MainMouseKbdListener
protected static class MainMouseKbdListener.GaiaGestureListener
extends com.badlogic.gdx.input.GestureDetector.GestureAdapter
-
Field Summary
Fields -
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) 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) booleantap(float x, float y, int count, int button) booleantouchDown(float x, float y, int pointer, int button) booleanzoom(float initialDistance, float distance) Methods inherited from class com.badlogic.gdx.input.GestureDetector.GestureAdapter
panStop, pinchStop
-
Field Details
-
inputListener
-
-
Constructor Details
-
GaiaGestureListener
protected GaiaGestureListener()
-
-
Method Details
-
touchDown
public boolean touchDown(float x, float y, int pointer, int button) - Specified by:
touchDownin interfacecom.badlogic.gdx.input.GestureDetector.GestureListener- Overrides:
touchDownin classcom.badlogic.gdx.input.GestureDetector.GestureAdapter
-
tap
public boolean tap(float x, float y, int count, int button) - Specified by:
tapin interfacecom.badlogic.gdx.input.GestureDetector.GestureListener- Overrides:
tapin classcom.badlogic.gdx.input.GestureDetector.GestureAdapter
-
longPress
public boolean longPress(float x, float y) - Specified by:
longPressin interfacecom.badlogic.gdx.input.GestureDetector.GestureListener- Overrides:
longPressin classcom.badlogic.gdx.input.GestureDetector.GestureAdapter
-
fling
public boolean fling(float velocityX, float velocityY, int button) - Specified by:
flingin interfacecom.badlogic.gdx.input.GestureDetector.GestureListener- Overrides:
flingin classcom.badlogic.gdx.input.GestureDetector.GestureAdapter
-
pan
public boolean pan(float x, float y, float deltaX, float deltaY) - Specified by:
panin interfacecom.badlogic.gdx.input.GestureDetector.GestureListener- Overrides:
panin classcom.badlogic.gdx.input.GestureDetector.GestureAdapter
-
zoom
public boolean zoom(float initialDistance, float distance) - Specified by:
zoomin interfacecom.badlogic.gdx.input.GestureDetector.GestureListener- Overrides:
zoomin classcom.badlogic.gdx.input.GestureDetector.GestureAdapter
-
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- Overrides:
pinchin classcom.badlogic.gdx.input.GestureDetector.GestureAdapter
-