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

isCursorCaptured

isCursorCaptured(canvas): boolean

Whether canvas holds the cursor, so a mouse move turns the camera and a shot aims through the crosshair: the browser’s pointer lock, or in an automated browser, which the engine asks for none, the capture it granted there.

Parameter Type
canvas HTMLElement

boolean