Skip to content

MouseLookTarget

Defined in: src/modules/input/mouse-look.ts:32

The element to capture — an HTMLElement (usually the canvas) in a browser. Headless environments may omit the DOM methods entirely; the provider then never captures. Whether it reports a lock is a question for lockSource.

  • EventTarget

optional requestPointerLock?: () => void | Promise<void>

Defined in: src/modules/input/mouse-look.ts:34

void | Promise<void>


optional style?: object

Defined in: src/modules/input/mouse-look.ts:33

cursor: string

addEventListener(type, callback, options?): void

Defined in: node_modules/typescript/lib/lib.dom.d.ts:11569

The addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.

MDN Reference

string

EventListenerOrEventListenerObject | null

boolean | AddEventListenerOptions

void

EventTarget.addEventListener


dispatchEvent(event): boolean

Defined in: node_modules/typescript/lib/lib.dom.d.ts:11575

The dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.

MDN Reference

Event

boolean

EventTarget.dispatchEvent


removeEventListener(type, callback, options?): void

Defined in: node_modules/typescript/lib/lib.dom.d.ts:11581

The removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.

MDN Reference

string

EventListenerOrEventListenerObject | null

boolean | EventListenerOptions

void

EventTarget.removeEventListener