Package gaiasky.input
Class MainGamepadListener
java.lang.Object
gaiasky.input.AbstractGamepadListener
gaiasky.input.MainGamepadListener
- All Implemented Interfaces:
com.badlogic.gdx.controllers.ControllerListener
,IObserver
,IInputListener
Gamepad input listener for the natural 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
-
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) Methods inherited from class gaiasky.input.AbstractGamepadListener
activate, addPressedKey, anyPressed, applyZeroPoint, connected, deactivate, disconnected, getMappings, isKeyPressed, notify, removePressedKey, update, updateControllerMappings
-
Constructor Details
-
MainGamepadListener
-
-
Method Details
-
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)
-