public interface XboxGamePadListener extends MappedGamePadListener
| Modifier and Type | Method and Description |
|---|---|
boolean |
buttonDown(XboxGamePad gamePad,
XboxButton button)
Called when a button is pressed down
|
boolean |
buttonUp(XboxGamePad gamePad,
XboxButton button)
Called when a button is released
|
void |
connected(XboxGamePad gamePad)
Called when a gamepad connects
|
void |
disconnected(XboxGamePad gamePad)
Called when a gamepad disconnects
|
boolean |
leftStickXMoved(XboxGamePad gamePad,
float value)
Called when left stick moves along its X axis
|
boolean |
leftStickYMoved(XboxGamePad gamePad,
float value)
Called when left stick moves along its Y axis
|
boolean |
leftTriggerMoved(XboxGamePad gamePad,
float value)
Called when the left trigger is moved
|
boolean |
rightStickXMoved(XboxGamePad gamePad,
float value)
Called when right stick moves along its X axis
|
boolean |
rightStickYMoved(XboxGamePad gamePad,
float value)
Called when left stick moves along its Y axis
|
boolean |
rightTriggerMoved(XboxGamePad gamePad,
float value)
Called when the right trigger is moved
|
void connected(XboxGamePad gamePad)
gamePad - The gamepad that this event came fromvoid disconnected(XboxGamePad gamePad)
gamePad - The gamepad that this event came fromboolean buttonDown(XboxGamePad gamePad, XboxButton button)
gamePad - The gamePad that this event came frombutton - The button that was pressedboolean buttonUp(XboxGamePad gamePad, XboxButton button)
gamePad - The gamepad that this event came frombutton - The button that was releasedboolean leftTriggerMoved(XboxGamePad gamePad, float value)
gamePad - The gamepad that this event came fromvalue - ~0f when released, ~1f when pressedboolean rightTriggerMoved(XboxGamePad gamePad, float value)
gamePad - The gamepad that this event came fromvalue - ~0f when released, ~1f when pressedboolean leftStickXMoved(XboxGamePad gamePad, float value)
gamePad - The gamepad that this event came fromvalue - ~-1f at left, ~0f at center, ~1f at right (values may never be
accurate due to dead zones, apply a DeadZone to the
gamepad instance to correct this)boolean leftStickYMoved(XboxGamePad gamePad, float value)
gamePad - The gamepad that this event came fromvalue - ~-1f at top, ~0f at center, ~1f at bottom (values may never be
accurate due to dead zones, apply a DeadZone to the
gamepad instance to correct this)boolean rightStickXMoved(XboxGamePad gamePad, float value)
gamePad - The gamepad that this event came fromvalue - ~-1f at left, ~0f at center, ~1f at right (values may never be
accurate due to dead zones, apply a DeadZone to the
gamepad instance to correct this)boolean rightStickYMoved(XboxGamePad gamePad, float value)
gamePad - The gamepad that this event came fromvalue - ~-1f at top, ~0f at center, ~1f at bottom (values may never be
accurate due to dead zones, apply a DeadZone to the
gamepad instance to correct this)