Package gaiasky.input

Class GuiKbdListener

java.lang.Object
com.badlogic.gdx.InputAdapter
com.badlogic.gdx.input.GestureDetector
gaiasky.input.AbstractMouseKbdListener
gaiasky.input.GuiKbdListener
All Implemented Interfaces:
com.badlogic.gdx.InputProcessor, IInputListener
Direct Known Subclasses:
WindowKbdListener

public abstract class GuiKbdListener extends AbstractMouseKbdListener
  • Field Details

    • stage

      protected final com.badlogic.gdx.scenes.scene2d.Stage stage
  • Constructor Details

    • GuiKbdListener

      protected GuiKbdListener(com.badlogic.gdx.scenes.scene2d.Stage stage)
  • Method Details

    • keyDown

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

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

      protected boolean pollKeys()
      Description copied from class: AbstractMouseKbdListener
      Implement key polling here.
      Specified by:
      pollKeys in class AbstractMouseKbdListener
      Returns:
      True if an action was successfully executed.
    • getContentContainers

      public com.badlogic.gdx.utils.Array<com.badlogic.gdx.scenes.scene2d.Group> getContentContainers()
    • actionDown

      public boolean actionDown()
    • close

      public abstract boolean close()
    • accept

      public abstract boolean accept()
    • select

      public abstract boolean select()
    • tabLeft

      public abstract boolean tabLeft()
    • tabRight

      public abstract boolean tabRight()
    • moveLeft

      public boolean moveLeft()
    • moveRight

      public boolean moveRight()
    • moveHome

      public boolean moveHome()
    • moveEnd

      public boolean moveEnd()
    • moveUp

      public boolean moveUp()
      Moves the focus up.
    • moveDown

      public boolean moveDown()
      Moves the focus down.
    • moveFocusVertical

      public boolean moveFocusVertical(boolean up)