Package gaiasky.interafce
Class NaturalMouseKbdListener.GaiaGestureListener
java.lang.Object
com.badlogic.gdx.input.GestureDetector.GestureAdapter
gaiasky.interafce.NaturalMouseKbdListener.GaiaGestureListener
- All Implemented Interfaces:
com.badlogic.gdx.input.GestureDetector.GestureListener
- Enclosing class:
- NaturalMouseKbdListener
protected static class NaturalMouseKbdListener.GaiaGestureListener
extends com.badlogic.gdx.input.GestureDetector.GestureAdapter
-
Field Summary
Fields Modifier and Type Field Description NaturalMouseKbdListener
inputListener
-
Constructor Summary
Constructors Modifier Constructor Description protected
GaiaGestureListener()
-
Method Summary
Modifier and Type Method 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
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
-