Add XRHand interface

This commit is contained in:
Manish Goregaokar 2020-04-24 09:12:58 -07:00
parent 6ad3e0c047
commit c89dc821ba
7 changed files with 116 additions and 3 deletions

View file

@ -0,0 +1,10 @@
/* 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://github.com/immersive-web/webxr-hands-input/blob/master/explainer.md
[SecureContext, Exposed=Window, Pref="dom.webxr.hands.enabled"]
interface XRHand {
// getter XRJoint(unsigned short jointIndex);
};

View file

@ -24,4 +24,7 @@ interface XRInputSource {
[SameObject] readonly attribute XRSpace? gripSpace;
// [SameObject] readonly attribute Gamepad? gamepad;
/* [SameObject] */ readonly attribute /* FrozenArray<DOMString> */ any profiles;
[Pref="dom.webxr.hands.enabled"]
readonly attribute XRHand? hand;
};