Class XRInputSourcesChangeEvent
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The WebXR Device API interface XRInputSourcesChangeEvent is used to represent the XRSession.Inputsourceschange event sent to an XRSession when the set of available WebXR input controllers changes.
[Value("XRInputSourcesChangeEvent")]
public class XRInputSourcesChangeEvent : Event
- Inheritance
-
XRInputSourcesChangeEvent
- Inherited Members
Remarks
Constructors
XRInputSourcesChangeEvent()
public XRInputSourcesChangeEvent()
XRInputSourcesChangeEvent(string, XRInputSourcesChangeEventInit)
The XRInputSourcesChangeEvent()
constructor creates and returns a new XRInputSourcesChangeEvent object,
representing an update to the list of available WebXR input devices. You
won't typically call this constructor yourself, as these events are created and sent to
you by the WebXR system.
public XRInputSourcesChangeEvent(string type, XRInputSourcesChangeEventInit eventInitDict)
Parameters
typestringeventInitDictXRInputSourcesChangeEventInit
Remarks
Properties
Added
The read-only XRInputSourcesChangeEvent
property added is a list of zero or
more input sources, each identified using an XRInputSource object,
which have been newly made available for use.
[Value("added")]
public XRInputSource[] Added { get; }
Property Value
- XRInputSource[]
An {{jsxref("Array")}} of zero or more XRInputSource objects, each
representing one input device added to the XR system.
Remarks
Removed
The read-only XRInputSourcesChangeEvent property removed is an array of
zero or more XRInputSource objects representing the input sources that have been removed from the XRSession.
[Value("removed")]
public XRInputSource[] Removed { get; }
Property Value
- XRInputSource[]
An {{jsxref("Array")}} of zero or more XRInputSource objects, each representing one input device removed from the XR system.
Remarks
Session
The XRInputSourcesChangeEvent propertysession specifies the
XRSession to which the input source list change event applies.
[Value("session")]
public XRSession Session { get; }