Package gaiasky.gui

Class KeyboardInputController

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

public class KeyboardInputController extends com.badlogic.gdx.InputAdapter implements IObserver
  • 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
    • notify

      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.