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

ActionListener

What listenToAction calls for an action.

Property Type Description
onPress? (event) => void On each press of one of its keys or its touch button; with repeat, on the keyboard’s repeats of a held key too, repeat then true.
onRelease? () => void When the last key or touch holding it lets go, the page is blurred or hidden, or the listener goes.
repeat? boolean Whether a held key’s repeats call onPress too.