Package gaia.cu9.ari.gaiaorbit.interfce
Class KeyInputController
- java.lang.Object
-
- com.badlogic.gdx.InputAdapter
-
- gaia.cu9.ari.gaiaorbit.interfce.KeyInputController
-
- All Implemented Interfaces:
com.badlogic.gdx.InputProcessor
public class KeyInputController 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
static java.util.Set<java.lang.Integer>
pressedKeys
Holds the pressed keys at any moment
-
Constructor Summary
Constructors Constructor Description KeyInputController()
-
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 static 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
-
-