Package gaiasky.input

Class SpacecraftGamepadListener

java.lang.Object
gaiasky.input.AbstractGamepadListener
gaiasky.input.SpacecraftGamepadListener
All Implemented Interfaces:
com.badlogic.gdx.controllers.ControllerListener, IObserver, IInputListener

public class SpacecraftGamepadListener extends AbstractGamepadListener
  • Constructor Details

  • Method Details

    • pollAxes

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

      public boolean pollButtons()
      Specified by:
      pollButtons in class AbstractGamepadListener
    • update

      public void update()
      Specified by:
      update in interface IInputListener
      Overrides:
      update in class AbstractGamepadListener
    • buttonDown

      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
    • buttonUp

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

      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