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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
fling
(float velocityX, float velocityY, int button) boolean
longPress
(float x, float y) boolean
pan
(float x, float y, float deltaX, float deltaY) 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) 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) 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:
touchDown
in interfacecom.badlogic.gdx.input.GestureDetector.GestureListener
- Overrides:
touchDown
in classcom.badlogic.gdx.input.GestureDetector.GestureAdapter
-
tap
public boolean tap(float x, float y, int count, int button) - Specified by:
tap
in interfacecom.badlogic.gdx.input.GestureDetector.GestureListener
- Overrides:
tap
in classcom.badlogic.gdx.input.GestureDetector.GestureAdapter
-
longPress
public boolean longPress(float x, float y) - Specified by:
longPress
in interfacecom.badlogic.gdx.input.GestureDetector.GestureListener
- Overrides:
longPress
in classcom.badlogic.gdx.input.GestureDetector.GestureAdapter
-
fling
public boolean fling(float velocityX, float velocityY, int button) - Specified by:
fling
in interfacecom.badlogic.gdx.input.GestureDetector.GestureListener
- Overrides:
fling
in classcom.badlogic.gdx.input.GestureDetector.GestureAdapter
-
pan
public boolean pan(float x, float y, float deltaX, float deltaY) - Specified by:
pan
in interfacecom.badlogic.gdx.input.GestureDetector.GestureListener
- Overrides:
pan
in classcom.badlogic.gdx.input.GestureDetector.GestureAdapter
-
zoom
public boolean zoom(float initialDistance, float distance) - Specified by:
zoom
in interfacecom.badlogic.gdx.input.GestureDetector.GestureListener
- Overrides:
zoom
in 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:
pinch
in interfacecom.badlogic.gdx.input.GestureDetector.GestureListener
- Overrides:
pinch
in classcom.badlogic.gdx.input.GestureDetector.GestureAdapter
-