Home
API reference

InputSnapshot

strata-game-library/capacitor

strata-game-library/capacitor


strata-game-library/capacitor / InputSnapshot

Interface: InputSnapshot

Defined in: definitions.ts:34

Properties

buttons

buttons: Record<string, boolean>

Defined in: definitions.ts:38


leftStick

leftStick: Vector2

Defined in: definitions.ts:36


rightStick

rightStick: Vector2

Defined in: definitions.ts:37


timestamp

timestamp: number

Defined in: definitions.ts:35


touches

touches: object[]

Defined in: definitions.ts:43

id

id: number

phase

phase: "began" | "moved" | "ended" | "cancelled"

position

position: Vector2


triggers

triggers: object

Defined in: definitions.ts:39

left

left: number

right: number