1681-engine / index / onPointerLockChange
Function: onPointerLockChange() ​
ts
function onPointerLockChange(fn, doc?): () => void;Defined in: src/platform/pointerLock.ts:55
Calls fn(locked) whenever the lock is taken or lost (Esc included). Returns the unsubscribe.
Parameters ​
| Parameter | Type |
|---|---|
fn | (locked) => void |
doc | PointerLockDocument | null |
Returns ​
() => void