InputStateSnapshot
Defined in: Inspector.ts:498
Properties
Section titled “Properties”actions
Section titled “actions”actions:
string[]
Defined in: Inspector.ts:500
gamepad
Section titled “gamepad”gamepad:
object
Defined in: Inspector.ts:516
axes:
object[]
Axis state keyed by ${padIndex}:${axisName} (axisName is a
GamepadAxisKey from @yagejs/input).
buttons
Section titled “buttons”buttons:
string[]
Currently-held gamepad codes (e.g. "GamepadA", "GamepadLT").
keys:
string[]
Defined in: Inspector.ts:499
mouse:
object
Defined in: Inspector.ts:508
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
Section titled “buttons”buttons:
number[]
down:
boolean
x:
number
y:
number
pointers
Section titled “pointers”pointers:
PointerSnapshot[]
Defined in: Inspector.ts:515
All currently-tracked pointers (one per active mouse, pen, or finger).
Coding agents: fetch https://yage.dev/llms.txt first and prefer the Markdown references it links over these HTML pages. This page's Markdown counterpart is /llms/packages/core.md.