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
stageFields 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
ConstructorsConstructorDescriptionWindowGamepadListener(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, rightStickVerticalMethods 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:
moveLeftin classGuiGamepadListener
-
moveRight
public void moveRight()- Specified by:
moveRightin classGuiGamepadListener
-
getContentContainers
public com.badlogic.gdx.utils.Array<com.badlogic.gdx.scenes.scene2d.Group> getContentContainers()- Overrides:
getContentContainersin classGuiGamepadListener
-
select
public void select()- Specified by:
selectin classGuiGamepadListener
-
tabLeft
public void tabLeft()- Specified by:
tabLeftin classGuiGamepadListener
-
tabRight
public void tabRight()- Specified by:
tabRightin classGuiGamepadListener
-
back
public void back()- Specified by:
backin classGuiGamepadListener
-
start
public void start()- Specified by:
startin classGuiGamepadListener
-