GamepadState
A snapshot of the first connected gamepad, taken in Input.update.
Defined in: engine/src/input/core.ts:81
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
axes | Record<PadAxis, number> | Sticks after a radial deadzone, -1..1 (Y is down-positive, as the API reports). | engine/src/input/core.ts:87 |
buttons | Record<PadButton, number> | Standard-mapping button values 0..1, by name. | engine/src/input/core.ts:85 |
id | string | Gamepad.id. | engine/src/input/core.ts:83 |
DragEvent
One step of a drag, in client pixels. startX/startY and the totals are measured from where this recogniser's drag began, which after a pinch is where the remaining finger was when it ended.
GestureHandlers
Callbacks for recogniseGestures; supply only the ones you need. A pointer that becomes a drag, a long-press or part of a pinch never also fires tap.