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

readLocalInput

readLocalInput<Value>(step, handle): Value | null

Reads the input this side’s player gave the step, or null with no input. Read it before core.systems.copyInput, which takes an edge button off; on a re-run it reads the input the re-run carries. A vector is reused by the next read: copy its numbers to keep them.

Type Parameter
Value extends InputValue
Parameter Type
step SystemStep
handle InputHandle<Value>

Value | null