Package gaiasky.interfce
Class GameMouseKbdListener
- java.lang.Object
-
- com.badlogic.gdx.InputAdapter
-
- com.badlogic.gdx.input.GestureDetector
-
- gaiasky.interfce.MouseKbdListener
-
- gaiasky.interfce.GameMouseKbdListener
-
- All Implemented Interfaces:
com.badlogic.gdx.InputProcessor
,IObserver
,IInputListener
public class GameMouseKbdListener extends MouseKbdListener implements IObserver
-
-
Field Summary
-
Fields inherited from class gaiasky.interfce.MouseKbdListener
camera, pressedKeys
-
-
Constructor Summary
Constructors Constructor Description GameMouseKbdListener(gaiasky.interfce.GameMouseKbdListener.GameGestureListener l, NaturalCamera naturalCamera)
GameMouseKbdListener(NaturalCamera naturalCamera)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activate()
void
deactivate()
float
getResponseTime()
boolean
keyDown(int keycode)
boolean
keyUp(int keycode)
boolean
mouseMoved(int screenX, int screenY)
void
notify(Events event, java.lang.Object... data)
boolean
touchUp(float x, float y, int pointer, int button)
void
update()
-
Methods inherited from class gaiasky.interfce.MouseKbdListener
addPressedKey, allPressed, anyPressed, isKeyPressed, removePressedKey
-
Methods inherited from class com.badlogic.gdx.input.GestureDetector
cancel, invalidateTapSquare, isLongPressed, isLongPressed, isPanning, reset, setLongPressSeconds, setMaxFlingDelay, setTapCountInterval, setTapRectangleSize, setTapSquareSize, touchDown, touchDown, touchDragged, touchDragged, touchUp
-
-
-
-
Constructor Detail
-
GameMouseKbdListener
public GameMouseKbdListener(gaiasky.interfce.GameMouseKbdListener.GameGestureListener l, NaturalCamera naturalCamera)
-
GameMouseKbdListener
public GameMouseKbdListener(NaturalCamera naturalCamera)
-
-
Method Detail
-
update
public void update()
- Specified by:
update
in interfaceIInputListener
-
getResponseTime
public float getResponseTime()
- Overrides:
getResponseTime
in classMouseKbdListener
-
activate
public void activate()
- Specified by:
activate
in interfaceIInputListener
-
deactivate
public void deactivate()
- Specified by:
deactivate
in interfaceIInputListener
-
keyDown
public boolean keyDown(int keycode)
- Specified by:
keyDown
in interfacecom.badlogic.gdx.InputProcessor
- Overrides:
keyDown
in classMouseKbdListener
-
keyUp
public boolean keyUp(int keycode)
- Specified by:
keyUp
in interfacecom.badlogic.gdx.InputProcessor
- Overrides:
keyUp
in classMouseKbdListener
-
mouseMoved
public boolean mouseMoved(int screenX, int screenY)
- Specified by:
mouseMoved
in interfacecom.badlogic.gdx.InputProcessor
- Overrides:
mouseMoved
in classcom.badlogic.gdx.InputAdapter
-
touchUp
public boolean touchUp(float x, float y, int pointer, int button)
- Overrides:
touchUp
in classcom.badlogic.gdx.input.GestureDetector
-
-