Readonly
devicetrue if this event is a click
true if this event is a double click
Readonly
modeIs the pointer event created via a touch on screen or a spatial device like a XR controller or hand tracking?
Readonly
originThe origin of the event contains a reference to the creator of this event.
This can be the Needle Engine input system or e.g. a XR controller
Optional
Readonly
rayA ray in worldspace for the event.
If the ray is undefined you can also use space.worldForward
and space.worldPosition
Readonly
sourcethe browser event that triggered this event (if any)
Readonly
spaceThe device space (this object is not necessarily rendered in the scene but you can access or copy the matrix)
E.g. you can access the input world space source position with space.worldPosition
or world direction with space.worldForward
Unique identifier for this input: a combination of the deviceIndex + button to uniquely identify the exact input (e.g. LeftController:Button0 = 0, RightController:Button1 = 101)
What type of input created this event: touch, mouse, xr controller, xr hand tracking...
The input that raised this event like pointerdown
true
if the event is marked to be used (when use()
has been called). Default: false
Generated using TypeDoc
the device index: mouse and touch are always 0, otherwise e.g. index of the connected Gamepad or XRController