TouchControlsSpec
What makeTouchControls puts on screen.
Defined in: engine/src/input/touch.ts:42
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
buttons? | ButtonSpec[] | Laid out bottom-up, innermost first, on their side. | engine/src/input/touch.ts:45 |
container? | HTMLElement | Element to put the overlay in. Default document.body. | engine/src/input/touch.ts:49 |
joysticks? | JoystickSpec[] | - | engine/src/input/touch.ts:43 |
show? | "auto" | "always" | "never" | Default "auto": shown after a touch, hidden on mouse/keyboard/gamepad. | engine/src/input/touch.ts:47 |