Skip to content

textmode.js / input / gamepad / GamepadButtonEventData

Interface: GamepadButtonEventData

Button edge payload emitted when a button crosses configured thresholds.

Properties

PropertyTypeDescription
buttonTextmodeGamepadButtonSnapshotCurrent button snapshot.
buttonIndexnumberButton index in the raw buttons array.
gamepadTextmodeGamepadSnapshotThe gamepad whose button changed state.
previousButtonTextmodeGamepadButtonSnapshotPrevious-frame button snapshot.
standardButtonName?TextmodeStandardButtonNameSemantic button alias for standard-mapped controllers.