mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
webxr: Update XRInputSource interface to latest spec (#33155)
* Update XRInputSource interface to latest spec Signed-off-by: Daniel Adams <msub2official@gmail.com> * Bump webxr version Signed-off-by: Daniel Adams <msub2official@gmail.com> * Add missing spec link Signed-off-by: Daniel Adams <msub2official@gmail.com> --------- Signed-off-by: Daniel Adams <msub2official@gmail.com>
This commit is contained in:
parent
56280c6242
commit
7501e3e12f
7 changed files with 19 additions and 10 deletions
|
@ -13,7 +13,8 @@ enum XRHandedness {
|
|||
enum XRTargetRayMode {
|
||||
"gaze",
|
||||
"tracked-pointer",
|
||||
"screen"
|
||||
"screen",
|
||||
"transient-pointer"
|
||||
};
|
||||
|
||||
[SecureContext, Exposed=Window, Pref="dom.webxr.enabled"]
|
||||
|
@ -22,9 +23,13 @@ interface XRInputSource {
|
|||
readonly attribute XRTargetRayMode targetRayMode;
|
||||
[SameObject] readonly attribute XRSpace targetRaySpace;
|
||||
[SameObject] readonly attribute XRSpace? gripSpace;
|
||||
[SameObject] readonly attribute Gamepad? gamepad;
|
||||
/* [SameObject] */ readonly attribute /* FrozenArray<DOMString> */ any profiles;
|
||||
readonly attribute boolean skipRendering;
|
||||
|
||||
// WebXR Gamepads Module
|
||||
[SameObject] readonly attribute Gamepad? gamepad;
|
||||
|
||||
// Hand Input
|
||||
[Pref="dom.webxr.hands.enabled"]
|
||||
readonly attribute XRHand? hand;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue