voxolith

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

PropertyTypeDescriptionDefined in
idstring-engine/src/input/touch.ts:22
radius?numberKnob 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

On this page