Skip to content

textmode.js / input / gamepad / GamepadAxisEventData

Interface: GamepadAxisEventData

Axis change payload emitted when an axis crosses configured thresholds.

Properties

PropertyTypeDescription
axisIndexnumberAxis index in the raw axes array.
deltanumberDifference between current and previous values.
gamepadTextmodeGamepadSnapshotThe gamepad whose axis changed state.
previousValuenumberPrevious-frame axis value.
standardAxisName?TextmodeStandardAxisNameSemantic axis alias for standard-mapped controllers.
valuenumberCurrent axis value.