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

CursorState

Property Type Description
canvas HTMLElement | null The canvas the cursor is captured on, once a camera that can lock has mounted; the menu’s Play captures it there.
captured boolean Whether the browser holds the cursor on the game’s canvas, its pointer lock: the mouse turns the camera and no cursor shows.
freed boolean Whether something on screen holds the cursor free, a Modal, a Panel with freeCursor or useFreeCursor: the camera asks for no capture until the last one lets go.