Add XRInputSourcesChangeEvent

This commit is contained in:
Manish Goregaokar 2020-01-08 18:14:10 +05:30
parent 82002765be
commit a90a42012b
3 changed files with 136 additions and 0 deletions

View file

@ -0,0 +1,19 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
// https://immersive-web.github.io/webxr/#xrinputsourceschangedevent-interface
[SecureContext, Exposed=Window, Pref="dom.webxr.test"]
interface XRInputSourcesChangeEvent : Event {
constructor(DOMString type, XRInputSourcesChangeEventInit eventInitDict);
[SameObject] readonly attribute XRSession session;
/* [SameObject] */ readonly attribute /* FrozenArray<XRInputSource> */ any added;
/* [SameObject] */ readonly attribute /* FrozenArray<XRInputSource> */ any removed;
};
dictionary XRInputSourcesChangeEventInit : EventInit {
required XRSession session;
required sequence<XRInputSource> added;
required sequence<XRInputSource> removed;
};