Skip to content

1681-engine / index / PointerLockDocument

Interface: PointerLockDocument ​

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

The slice of Document used here; tests pass their own.

Properties ​

pointerLockElement? ​

ts
readonly optional pointerLockElement?: Element | null;

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

Methods ​

addEventListener() ​

ts
addEventListener(type, fn): void;

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

Parameters ​

ParameterType
typestring
fn() => void

Returns ​

void


exitPointerLock()? ​

ts
optional exitPointerLock(): void;

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

Returns ​

void


removeEventListener() ​

ts
removeEventListener(type, fn): void;

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

Parameters ​

ParameterType
typestring
fn() => void

Returns ​

void

Released under the MIT License.