Package gaiasky.input
Class SpacecraftGamepadListener
java.lang.Object
gaiasky.input.AbstractGamepadListener
gaiasky.input.SpacecraftGamepadListener
- 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
void
update()
Methods inherited from class gaiasky.input.AbstractGamepadListener
activate, anyPressed, anyPressed, applyZeroPoint, connected, deactivate, disconnected, getMappings, isActive, isKeyPressed, isKeyPressed, notify, setMappings
-
Constructor Details
-
SpacecraftGamepadListener
-
-
Method Details
-
pollAxes
public boolean pollAxes()- Specified by:
pollAxes
in classAbstractGamepadListener
-
pollButtons
public boolean pollButtons()- Specified by:
pollButtons
in classAbstractGamepadListener
-
update
public void update()- Specified by:
update
in interfaceIInputListener
- Overrides:
update
in classAbstractGamepadListener
-
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
-