textmode.js / input / gamepad / GamepadButtonEventData
Interface: GamepadButtonEventData
Button edge payload emitted when a button crosses configured thresholds.
Properties
| Property | Type | Description |
|---|---|---|
button | TextmodeGamepadButtonSnapshot | Current button snapshot. |
buttonIndex | number | Button index in the raw buttons array. |
gamepad | TextmodeGamepadSnapshot | The gamepad whose button changed state. |
previousButton | TextmodeGamepadButtonSnapshot | Previous-frame button snapshot. |
standardButtonName? | TextmodeStandardButtonName | Semantic button alias for standard-mapped controllers. |