Package gaiasky.input
Class SpacecraftGamepadListener
java.lang.Object
gaiasky.input.AbstractGamepadListener
gaiasky.input.SpacecraftGamepadListener
- All Implemented Interfaces:
com.badlogic.gdx.controllers.ControllerListener,IObserver,IInputListener
Gamepad input listener for the spacecraft camera.
-
Field Summary
Fields inherited from class gaiasky.input.AbstractGamepadListener
AXIS_EVT_DELAY, AXIS_POLL_DELAY, AXIS_TH, em, lastAxisEvtTime, lastAxisPollTime, mappings, pressedKeys -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaxisMoved(com.badlogic.gdx.controllers.Controller controller, int axisCode, float value) booleanbuttonDown(com.badlogic.gdx.controllers.Controller controller, int buttonCode) booleanbuttonUp(com.badlogic.gdx.controllers.Controller controller, int buttonCode) voidupdate()Methods inherited from class gaiasky.input.AbstractGamepadListener
activate, addPressedKey, anyPressed, applyZeroPoint, connected, deactivate, disconnected, getMappings, isKeyPressed, notify, removePressedKey, updateControllerMappings
-
Constructor Details
-
SpacecraftGamepadListener
-
-
Method Details
-
update
public void update()- Specified by:
updatein interfaceIInputListener- Overrides:
updatein classAbstractGamepadListener
-
buttonDown
public boolean buttonDown(com.badlogic.gdx.controllers.Controller controller, int buttonCode) -
buttonUp
public boolean buttonUp(com.badlogic.gdx.controllers.Controller controller, int buttonCode) -
axisMoved
public boolean axisMoved(com.badlogic.gdx.controllers.Controller controller, int axisCode, float value)
-