LockSource
Defined in: src/modules/input/mouse-look.ts:44
Document-like source of lock state: the provider listens here for
pointerlockchange / pointermove and asks it which element is locked.
Injectable because jsdom ships no pointer-lock API — tests pass a plain
EventTarget with pointerLockElement assigned.
Extends
Section titled “Extends”EventTarget
Properties
Section titled “Properties”exitPointerLock?
Section titled “exitPointerLock?”
optionalexitPointerLock?: () =>void
Defined in: src/modules/input/mouse-look.ts:46
Returns
Section titled “Returns”void
pointerLockElement
Section titled “pointerLockElement”pointerLockElement:
Element|null
Defined in: src/modules/input/mouse-look.ts:45
Methods
Section titled “Methods”addEventListener()
Section titled “addEventListener()”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.
Parameters
Section titled “Parameters”string
callback
Section titled “callback”EventListenerOrEventListenerObject | null
options?
Section titled “options?”boolean | AddEventListenerOptions
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”EventTarget.addEventListener
dispatchEvent()
Section titled “dispatchEvent()”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.
Parameters
Section titled “Parameters”Event
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”EventTarget.dispatchEvent
removeEventListener()
Section titled “removeEventListener()”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.
Parameters
Section titled “Parameters”string
callback
Section titled “callback”EventListenerOrEventListenerObject | null
options?
Section titled “options?”boolean | EventListenerOptions
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”EventTarget.removeEventListener