forked from rustwasm/wasm-bindgen
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an IDL file for the WebXR Gamepads Module (rustwasm#2914)
* Add new gamepad idl * Generate code
- Loading branch information
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
crates/web-sys/webidls/unstable/WebXRGamepadsModule.webidl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ | ||
/* | ||
* WebXR Device API | ||
* W3C Working Draft, 31 March 2022 | ||
* The origin of this IDL file is: | ||
* https://www.w3.org/TR/2022/WD-webxr-gamepads-module-1-20220426/ | ||
*/ | ||
|
||
partial interface XRInputSource { | ||
[SameObject] readonly attribute Gamepad? gamepad; | ||
}; |