mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Add XRHand interface
This commit is contained in:
parent
6ad3e0c047
commit
c89dc821ba
7 changed files with 116 additions and 3 deletions
10
components/script/dom/webidls/XRHand.webidl
Normal file
10
components/script/dom/webidls/XRHand.webidl
Normal 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);
|
||||
};
|
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue