Mirror Engine
V5
How To
Mirror Engine Logo

Mirror Engine API


Mirror Engine API / ElementSelectEvent

Class: ElementSelectEvent

Represents a XRInputSourceEvent fired on a ElementComponent.

Extends

Constructors

new ElementSelectEvent()

new ElementSelectEvent(
   event: XRInputSourceEvent,
   element: ElementComponent,
   camera: CameraComponent,
   inputSource: XrInputSource): ElementSelectEvent

Create an instance of a ElementSelectEvent.

Parameters

event

XRInputSourceEvent

The XRInputSourceEvent that was originally raised.

element

ElementComponent

The ElementComponent that this event was originally raised on.

camera

CameraComponent

The CameraComponent that this event was originally raised via.

inputSource

XrInputSource

The XR input source that this event was originally raised from.

Returns

ElementSelectEvent

Overrides

ElementInputEvent.constructor

Properties

camera

camera: CameraComponent

The CameraComponent that this event was originally raised via.

Inherited from

ElementInputEvent.camera


element

element: ElementComponent

The ElementComponent that this event was originally raised on.

Inherited from

ElementInputEvent.element


event

event: MouseEvent | TouchEvent

MouseEvent or TouchEvent that was originally raised.

Inherited from

ElementInputEvent.event


inputSource

inputSource: XrInputSource

The XR input source that this event was originally raised from.

Methods

stopPropagation()

stopPropagation(): void

Stop propagation of the event to parent ElementComponents. This also stops propagation of the event to other event listeners of the original DOM Event.

Returns

void

Inherited from

ElementInputEvent.stopPropagation

Mirror Engine Logo