Package gaiasky.input

Class GuiGamepadListener

All Implemented Interfaces:
com.badlogic.gdx.controllers.ControllerListener, IObserver, IInputListener
Direct Known Subclasses:
WindowGamepadListener

public abstract class GuiGamepadListener extends AbstractGamepadListener
A gamepad listener for GUI elements like windows and panes.
  • Field Details Link icon

    • stage Link icon

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

    • GuiGamepadListener Link icon

      public GuiGamepadListener(String mappingsFile, com.badlogic.gdx.scenes.scene2d.Stage stage)
    • GuiGamepadListener Link icon

      public GuiGamepadListener(IGamepadMappings mappings, com.badlogic.gdx.scenes.scene2d.Stage stage)
  • Method Details Link icon

    • buttonDown Link icon

      public boolean buttonDown(com.badlogic.gdx.controllers.Controller controller, int buttonCode)
      Specified by:
      buttonDown in interface com.badlogic.gdx.controllers.ControllerListener
      Overrides:
      buttonDown in class AbstractGamepadListener
    • axisMoved Link icon

      public boolean axisMoved(com.badlogic.gdx.controllers.Controller controller, int axisCode, float value)
      Specified by:
      axisMoved in interface com.badlogic.gdx.controllers.ControllerListener
      Overrides:
      axisMoved in class AbstractGamepadListener
    • pollAxes Link icon

      public boolean pollAxes()
      Specified by:
      pollAxes in class AbstractGamepadListener
    • pollButtons Link icon

      public boolean pollButtons()
      Specified by:
      pollButtons in class AbstractGamepadListener
    • getContentContainers Link icon

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

      public void actionDown()
      By default, the main action acts on the keyboard focus actor by firing a change event or checking it, if it is a checkbox.
    • back Link icon

      public abstract void back()
    • start Link icon

      public abstract void start()
    • select Link icon

      public abstract void select()
    • tabLeft Link icon

      public abstract void tabLeft()
    • tabRight Link icon

      public abstract void tabRight()
    • moveLeft Link icon

      public abstract void moveLeft()
    • moveRight Link icon

      public abstract void moveRight()
    • moveUp Link icon

      public void moveUp()
      Moves the focus up.
    • moveDown Link icon

      public void moveDown()
      Moves the focus down.
    • moveFocusVertical Link icon

      public void moveFocusVertical(boolean up)
    • rightStickVertical Link icon

      public void rightStickVertical(float value)
      By default, the vertical right stick does:
      • Change the selection in select boxes.
      • Move the first scroll pane found in the content up and down.
      Parameters:
      value - The axis value.
    • rightStickVertical Link icon

      protected void rightStickVertical(com.badlogic.gdx.scenes.scene2d.Actor focus, float value)
    • rightStickHorizontal Link icon

      public void rightStickHorizontal(float value)
      By default, the horizontal right stick does:
      • Move sliders right and left.
      Parameters:
      value - The axis value.
    • rightStickHorizontal Link icon

      protected void rightStickHorizontal(com.badlogic.gdx.scenes.scene2d.Actor focus, float value)