Skip to content
EASEL.js

PointerLockControls

Pointer-lock first-person camera controls for Canvas2D scenes. The browser Pointer Lock API is used when available. In non-browser hosts, lock() still changes the control state so deterministic tests and embedded canvases can exercise the same camera behavior without a document.