MDN self-hosted library · e01.org

XRInputSourceArray

Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.

js
let sources = xrSession.inputSources;
if (sources.length > 0) {
  handleInput(sources[0]);
}