Skip to content

GamepadSnapshot

Defined in: src/modules/input/gamepad-provider.ts:84

Minimal structural view of a Gamepad snapshot — only the fields the provider reads. Real consumers get this from navigator.getGamepads(); tests can pass a plain object.

readonly axes: readonly number[]

Defined in: src/modules/input/gamepad-provider.ts:85


readonly buttons: readonly object[]

Defined in: src/modules/input/gamepad-provider.ts:86


readonly connected: boolean

Defined in: src/modules/input/gamepad-provider.ts:87