Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

BoundJoystickProps

A stick bound to a vector input that declares touch, such as characters.inputs.move: it holds the input while a thumb drags it, added to its keys, and takes the place of the stick the engine draws for it.

Property Type Default value Description
className? string undefined Placement and visibility, such as showing it only on touch screens.
grabMargin? number 8 How far past the drawn ring a thumb still catches the stick, in the ring’s own units. The ring grows to fill it on the grab, which is what tells the player what they caught.
hidden? boolean false Draws nothing, and still takes the place of the engine’s stick for the input: for a scene that shows none.
input InputHandle<VectorValue> undefined -
onSteer? undefined undefined -
slot? Slot Slot.BottomLeft The slot it stands in.