Skip to content

Commit 5354663

Browse files
autofoolipfoolip
authored andcommitted

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

interfaces/webxr.idl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,13 @@ interface XRInputSource {
188188
readonly attribute XRTargetRayMode targetRayMode;
189189
readonly attribute XRSpace targetRaySpace;
190190
readonly attribute XRSpace? gripSpace;
191+
readonly attribute Gamepad? gamepad;
192+
};
193+
194+
enum GamepadMappingType {
195+
"", // Defined in the Gamepad API
196+
"standard", // Defined in the Gamepad API
197+
"xr-standard",
191198
};
192199

193200
[SecureContext, Exposed=Window] interface XRLayer {};
@@ -254,11 +261,13 @@ dictionary XRSessionEventInit : EventInit {
254261
interface XRInputSourceEvent : Event {
255262
readonly attribute XRFrame frame;
256263
readonly attribute XRInputSource inputSource;
264+
readonly attribute long? buttonIndex;
257265
};
258266

259267
dictionary XRInputSourceEventInit : EventInit {
260268
required XRFrame frame;
261269
required XRInputSource inputSource;
270+
long? buttonIndex = null;
262271
};
263272

264273
[SecureContext, Exposed=Window, Constructor(DOMString type, XRReferenceSpaceEventInit eventInitDict)]

0 commit comments

Comments
 (0)