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

ControlsOptions

What controls() takes.

Property Type Description
keys? Partial<Record<"left" | "right" | "menu" | "forward" | "back" | "pushToTalk" | "performanceStats" | "interact" | "climbUp" | "climbDown" | "cameraLock", readonly KeyCode[]>> The keys each engine action takes in place of its own, as { cameraLock: [] } drops the camera lock’s Shift so a sprint can take it, and { jump: ["Space", "Enter"] } adds Enter to the jump. An action left out keeps its keys.