voxolith

TouchControlsSpec

What makeTouchControls puts on screen.

Defined in: engine/src/input/touch.ts:42

Properties

PropertyTypeDescriptionDefined in
buttons?ButtonSpec[]Laid out bottom-up, innermost first, on their side.engine/src/input/touch.ts:45
container?HTMLElementElement 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

On this page