Package gaiasky.gui
Class KeyboardInputController
java.lang.Object
com.badlogic.gdx.InputAdapter
gaiasky.gui.KeyboardInputController
- All Implemented Interfaces:
com.badlogic.gdx.InputProcessor
,IObserver
-
Field Summary
Modifier and TypeFieldDescriptionHolds the pressed keys at any moment -
Constructor Summary
-
Method Summary
Methods inherited from class com.badlogic.gdx.InputAdapter
keyTyped, mouseMoved, scrolled, touchCancelled, touchDown, touchDragged, touchUp
-
Field Details
-
mappings
-
pressedKeys
Holds the pressed keys at any moment
-
-
Constructor Details
-
KeyboardInputController
public KeyboardInputController(com.badlogic.gdx.Input input)
-
-
Method Details
-
keyDown
public boolean keyDown(int keycode) - Specified by:
keyDown
in interfacecom.badlogic.gdx.InputProcessor
- Overrides:
keyDown
in classcom.badlogic.gdx.InputAdapter
-
keyUp
public boolean keyUp(int keycode) - Specified by:
keyUp
in interfacecom.badlogic.gdx.InputProcessor
- Overrides:
keyUp
in classcom.badlogic.gdx.InputAdapter
-
notify
Description copied from interface:IObserver
Event notification call.
-