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.
Extends
Section titled “Extends”EventTarget
Properties
Section titled “Properties”requestPointerLock?
Section titled “requestPointerLock?”
optionalrequestPointerLock?: () =>void|Promise<void>
Defined in: src/modules/input/mouse-look.ts:34
Returns
Section titled “Returns”void | Promise<void>
style?
Section titled “style?”
optionalstyle?:object
Defined in: src/modules/input/mouse-look.ts:33
cursor
Section titled “cursor”cursor:
string
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