JoystickSpec
A floating joystick. It sets virtual values <id> (1 while held) and <id>.x, <id>.y (-1..1, Y down-positive), read as touch:<id>.x and so on in an action map.
Defined in: engine/src/input/touch.ts:21
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
id | string | - | engine/src/input/touch.ts:22 |
radius? | number | Knob travel in CSS pixels. Default 56. | engine/src/input/touch.ts:26 |
side | "left" | "right" | Which part of the screen the thumb can land in. | engine/src/input/touch.ts:24 |