Skip to content

InputStateSnapshot

Defined in: Inspector.ts:232

actions: string[]

Defined in: Inspector.ts:234


gamepad: object

Defined in: Inspector.ts:250

axes: object[]

Axis state keyed by ${padIndex}:${axisName} (axisName is a GamepadAxisKey from @yagejs/input).

buttons: string[]

Currently-held gamepad codes (e.g. "GamepadA", "GamepadLT").


keys: string[]

Defined in: Inspector.ts:233


mouse: object

Defined in: Inspector.ts:242

Aggregate / primary-pointer view, retained for back-compat. x / y track the primary pointer’s screen position; buttons / down reflect the any-pointer aggregate that drives the MouseLeft/Middle/Right action codes.

For multi-touch state, read InputStateSnapshot.pointers.

buttons: number[]

down: boolean

x: number

y: number


pointers: PointerSnapshot[]

Defined in: Inspector.ts:249

All currently-tracked pointers (one per active mouse, pen, or finger).