Package gaiasky.input
Class MainGamepadListener
java.lang.Object
gaiasky.input.AbstractGamepadListener
gaiasky.input.MainGamepadListener
- All Implemented Interfaces:
com.badlogic.gdx.controllers.ControllerListener
,IObserver
,IInputListener
-
Field Summary
Fields inherited from class gaiasky.input.AbstractGamepadListener
active, axisEventDelay, axisPollDelay, buttonPollDelay, em, lastAxisEvtTime, lastButtonPollTime, lastControllerUsed, mappings, MIN_ZERO_POINT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
axisMoved
(com.badlogic.gdx.controllers.Controller controller, int axisCode, float value) boolean
buttonDown
(com.badlogic.gdx.controllers.Controller controller, int buttonCode) boolean
buttonUp
(com.badlogic.gdx.controllers.Controller controller, int buttonCode) boolean
pollAxes()
boolean
Methods inherited from class gaiasky.input.AbstractGamepadListener
activate, anyPressed, anyPressed, applyZeroPoint, connected, deactivate, disconnected, getMappings, isActive, isKeyPressed, isKeyPressed, notify, setMappings, update
-
Constructor Details
-
MainGamepadListener
-
-
Method Details
-
buttonDown
public boolean buttonDown(com.badlogic.gdx.controllers.Controller controller, int buttonCode) - Specified by:
buttonDown
in interfacecom.badlogic.gdx.controllers.ControllerListener
- Overrides:
buttonDown
in classAbstractGamepadListener
-
buttonUp
public boolean buttonUp(com.badlogic.gdx.controllers.Controller controller, int buttonCode) - Specified by:
buttonUp
in interfacecom.badlogic.gdx.controllers.ControllerListener
- Overrides:
buttonUp
in classAbstractGamepadListener
-
axisMoved
public boolean axisMoved(com.badlogic.gdx.controllers.Controller controller, int axisCode, float value) - Specified by:
axisMoved
in interfacecom.badlogic.gdx.controllers.ControllerListener
- Overrides:
axisMoved
in classAbstractGamepadListener
-
pollAxes
public boolean pollAxes()- Specified by:
pollAxes
in classAbstractGamepadListener
-
pollButtons
public boolean pollButtons()- Specified by:
pollButtons
in classAbstractGamepadListener
-