textmode.js / input / gamepad / TextmodeGamepadSnapshot
Interface: TextmodeGamepadSnapshot
Immutable frame snapshot for a connected gamepad.
Properties
| Property | Type | Description |
|---|---|---|
axes | readonly number[] | Raw axis values in browser order. |
buttons | readonly TextmodeGamepadButtonSnapshot[] | Raw button states in browser order. |
connected | boolean | Whether the controller is currently connected. |
id | string | Browser-reported identifier string. |
index | number | Browser-assigned gamepad slot index. |
mapping | "" | "standard" | Recognized browser mapping type used by textmode.js. |
standard? | TextmodeStandardGamepadSnapshot | Optional semantic helpers for standard-mapped controllers. |
timestamp | number | Browser-provided timestamp for the current state sample. |