Readonly devicetrue if this event is a click
true if this event is a double click
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)
The input that raised this event like pointerdown
Generated using TypeDoc
the device index: mouse and touch are always 0, otherwise e.g. index of the connected Gamepad or XRController