Package gaiasky.gui
Class KeyboardInputController
java.lang.Object
com.badlogic.gdx.InputAdapter
gaiasky.gui.KeyboardInputController
- All Implemented Interfaces:
com.badlogic.gdx.InputProcessor
public class KeyboardInputController
extends com.badlogic.gdx.InputAdapter
This input inputListener connects the input events with the key binding actions
-
Field Summary
FieldsModifier and TypeFieldDescriptionHolds the pressed keys at any moment -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.badlogic.gdx.InputAdapter
keyTyped, mouseMoved, scrolled, 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
-