Package gaiasky.input
Class WindowGamepadListener
java.lang.Object
gaiasky.input.AbstractGamepadListener
gaiasky.input.GuiGamepadListener
gaiasky.input.WindowGamepadListener
- All Implemented Interfaces:
com.badlogic.gdx.controllers.ControllerListener
,IObserver
,IInputListener
Provides the default gamepad listener for UI windows.
-
Field Summary
Fields inherited from class gaiasky.input.GuiGamepadListener
stage
Fields inherited from class gaiasky.input.AbstractGamepadListener
active, AXIS_EVT_DELAY, AXIS_POLL_DELAY, BUTTON_POLL_DELAY, em, lastAxisEvtTime, lastButtonPollTime, lastControllerUsed, mappings, MIN_ZERO_POINT
-
Constructor Summary
ConstructorDescriptionWindowGamepadListener
(IGamepadMappings mappings, GenericDialog dialog) WindowGamepadListener
(String mappingsFile, GenericDialog dialog) -
Method Summary
Methods inherited from class gaiasky.input.GuiGamepadListener
actionDown, axisMoved, buttonDown, moveDown, moveFocusVertical, moveUp, pollAxes, pollButtons, rightStickHorizontal, rightStickHorizontal, rightStickVertical, rightStickVertical
Methods inherited from class gaiasky.input.AbstractGamepadListener
activate, anyPressed, anyPressed, applyZeroPoint, buttonUp, connected, deactivate, disconnected, getMappings, isActive, isKeyPressed, isKeyPressed, notify, setMappings, update
-
Constructor Details
-
WindowGamepadListener
-
WindowGamepadListener
-
-
Method Details
-
moveLeft
public void moveLeft()- Specified by:
moveLeft
in classGuiGamepadListener
-
moveRight
public void moveRight()- Specified by:
moveRight
in classGuiGamepadListener
-
getContentContainers
public com.badlogic.gdx.utils.Array<com.badlogic.gdx.scenes.scene2d.Group> getContentContainers()- Overrides:
getContentContainers
in classGuiGamepadListener
-
select
public void select()- Specified by:
select
in classGuiGamepadListener
-
tabLeft
public void tabLeft()- Specified by:
tabLeft
in classGuiGamepadListener
-
tabRight
public void tabRight()- Specified by:
tabRight
in classGuiGamepadListener
-
back
public void back()- Specified by:
back
in classGuiGamepadListener
-
start
public void start()- Specified by:
start
in classGuiGamepadListener
-