Class KeyboardInputController

java.lang.Object
com.badlogic.gdx.InputAdapter
gaiasky.gui.main.KeyboardInputController
All Implemented Interfaces:
com.badlogic.gdx.InputProcessor, IObserver

public class KeyboardInputController extends com.badlogic.gdx.InputAdapter implements IObserver
  • Field Details Link icon

    • mappings Link icon

      public KeyBindings mappings
    • pressedKeys Link icon

      public TreeSet<Integer> pressedKeys
      Holds the pressed keys at any moment
  • Constructor Details Link icon

    • KeyboardInputController Link icon

      public KeyboardInputController(com.badlogic.gdx.Input input)
  • Method Details Link icon

    • keyDown Link icon

      public boolean keyDown(int keyCode)
      Specified by:
      keyDown in interface com.badlogic.gdx.InputProcessor
      Overrides:
      keyDown in class com.badlogic.gdx.InputAdapter
    • keyUp Link icon

      public boolean keyUp(int keyCode)
      Specified by:
      keyUp in interface com.badlogic.gdx.InputProcessor
      Overrides:
      keyUp in class com.badlogic.gdx.InputAdapter
    • notify Link icon

      public void notify(Event event, Object source, Object... data)
      Description copied from interface: IObserver
      Event notification call.
      Specified by:
      notify in interface IObserver
      Parameters:
      event - The event type.
      source - The source object, if any.
      data - The data associated with this event.