Secure context

This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

The XRInputSourcesChangeEventInit property added specifies a list of input sources, each identified using an XRInputSource object, which the represented inputsourceschange event is to indicate are newly available for use.


let inputSourcesEventInit = {
  session: xrSession,
  added: [newDevice1, ..., newDeviceN],
  removed: [removedDevice1, ..., newDeviceN],
myInputSourcesChangeEvent = new XRInputSourcesChangeEventInit("inputsourceschange", inputSourcesEventInit);

myInputSourcesChangeEvent = new XRInputSourcesChangeEventInit("inputsourceschange",
                              session: xrSession,
                              added: addedDeviceList,
                              removed: removedDeviceList


An Array of zero or more XRInputSource objects, each representing one input device added to the XR system.


Specification Status Comment
WebXR Device API
The definition of 'XRInputSourcesChangeEventInit.added' in that specification.
Working Draft Initial definition.

Browser compatibility

No compatibility data found for api.XRInputSourcesChangeEventInit.added.
Check for problems with this page or contribute missing data to mdn/browser-compat-data.