@relu-interactives/spatial-ecs
@relu-interactives/spatial-ecs / index / GamepadSnapshot
Type Alias: GamepadSnapshot ​
ts
type GamepadSnapshot = {
index: number;
id: string;
family: GamepadFamily;
standard: boolean;
buttons: number[];
axes: number[];
};Defined in: input/gamepad.ts:147
One pad's state for a frame, read from navigator.getGamepads().
Properties ​
| Property | Type | Description | Defined in |
|---|---|---|---|
index | number | - | input/gamepad.ts:148 |
id | string | - | input/gamepad.ts:149 |
family | GamepadFamily | - | input/gamepad.ts:150 |
standard | boolean | False when the browser doesn't report the standard layout; buttons may be elsewhere. | input/gamepad.ts:152 |
buttons | number[] | - | input/gamepad.ts:153 |
axes | number[] | - | input/gamepad.ts:154 |

