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

setInput

setInput<Value>(handle, value): void

Holds handle at value from code, as a game’s own touch control, device or camera does: a button held while true, an axis or a vector at the value, added to what its keys hold, an angle at the value. It stands until set again; false or the input’s rest lets go. A button declared edge: true is pressed once by true, as a tap of its key is, and holds nothing.

Type Parameter
Value extends InputValue
Parameter Type
handle InputHandle<Value>
value Value

void