Package gaiasky.interafce
Class KeyboardInputController
- java.lang.Object
-
- com.badlogic.gdx.InputAdapter
-
- gaiasky.interafce.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
Fields Modifier and Type Field Description KeyBindings
mappings
java.util.Set<java.lang.Integer>
pressedKeys
Holds the pressed keys at any moment
-
Constructor Summary
Constructors Constructor Description KeyboardInputController(com.badlogic.gdx.Input input)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
keyDown(int keycode)
boolean
keyUp(int keycode)
-
-
-
Field Detail
-
mappings
public KeyBindings mappings
-
pressedKeys
public java.util.Set<java.lang.Integer> pressedKeys
Holds the pressed keys at any moment
-
-
Method Detail
-
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
-
-