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 Details

    • mappings

      public KeyBindings mappings
    • pressedKeys

      public Set<Integer> 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 interface com.badlogic.gdx.InputProcessor
      Overrides:
      keyDown in class com.badlogic.gdx.InputAdapter
    • keyUp

      public boolean keyUp(int keycode)
      Specified by:
      keyUp in interface com.badlogic.gdx.InputProcessor
      Overrides:
      keyUp in class com.badlogic.gdx.InputAdapter