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

TouchControls

TouchControls(props): Element

The sticks and buttons the game’s declarations draw, for a coarse pointer only, each drawn while its input can fill: an input’s while the player controls an entity under a live context that lists it. A stick holds its vector while a thumb drags it, a button holds a held input while the finger is down, sends a command on its press, and presses and releases a page action as its key would. The engine draws them on its own; place this to restyle the row or hide them, and the engine’s own give way while it is mounted. One control moves with a bound Joystick or Tap.

Parameter Type
props TouchControlsProps

Element