Skip to content

1681-engine / index / isPointerLocked

Function: isPointerLocked() ​

ts
function isPointerLocked(element?, doc?): boolean;

Defined in: src/platform/pointerLock.ts:24

True while element (or, with none named, anything) holds the pointer.

Parameters ​

ParameterType
element?Element
doc?PointerLockDocument | null

Returns ​

boolean

Released under the MIT License.