XRSession: inputsourceschange event
The inputsourceschange
event is sent to an XRSession
when the set of available WebXR input devices changes.
The received event, of type XRInputSourcesChangeEvent
, contains a list of any newly added
and/or removed
input devices.
Bubbles | Yes |
---|---|
Cancelable | No |
Interface | XRInputSourcesChangeEvent |
Event handler property | oninputsourceschange |
The event object contains lists of the newly-added and/or removed input devices in its added
and removed
properties.
Examples
See XRInputSourcesChangeEvent
for example code.
Specifications
Specification |
---|
WebXR Device API # eventdef-xrsession-inputsourceschange |
Browser compatibility
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
inputsourceschange_event |
79 |
79 |
No |
No |
No |
No |
No |
79 |
No |
No |
No |
11.2 |
© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/XRSession/inputsourceschange_event