Update interfaces/webxr.idl (#16273)
Source: https://github.com/tidoust/reffy-reports/blob/c11c19e/whatwg/idl/webxr.idl
Build: https://travis-ci.org/tidoust/reffy-reports/builds/516042401
diff --git a/interfaces/webxr.idl b/interfaces/webxr.idl
index 8a32640..4c74fda 100644
--- a/interfaces/webxr.idl
+++ b/interfaces/webxr.idl
@@ -188,6 +188,13 @@
readonly attribute XRTargetRayMode targetRayMode;
readonly attribute XRSpace targetRaySpace;
readonly attribute XRSpace? gripSpace;
+ readonly attribute Gamepad? gamepad;
+};
+
+enum GamepadMappingType {
+ "", // Defined in the Gamepad API
+ "standard", // Defined in the Gamepad API
+ "xr-standard",
};
[SecureContext, Exposed=Window] interface XRLayer {};
@@ -254,11 +261,13 @@
interface XRInputSourceEvent : Event {
readonly attribute XRFrame frame;
readonly attribute XRInputSource inputSource;
+ readonly attribute long? buttonIndex;
};
dictionary XRInputSourceEventInit : EventInit {
required XRFrame frame;
required XRInputSource inputSource;
+ long? buttonIndex = null;
};
[SecureContext, Exposed=Window, Constructor(DOMString type, XRReferenceSpaceEventInit eventInitDict)]