WebXR Gamepads Module: Difference between revisions
Jump to navigation
Jump to search
(Add empty page with category) |
(Basic summary + WebIDL) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
[[Category: | {{Infobox specification | ||
|title = WebXR Gamepads Module | |||
|status = WD | |||
|last_updated = 26 April 2022 | |||
|editors = [[Brandon Jones]], [[Manish Goregaokar]], [[Rik Cabanier]] | |||
|former_editors = [[Nell Waliczek]] | |||
|group = WG | |||
}} | |||
The WebXR Gamepads Module defines how button, trigger, thumbstick, and touchpad data are reported by adding a Gamepad object exposed on an XRInputSource. | |||
== WebIDL == | |||
<syntaxhighlight lang="idl"> | |||
partial interface XRInputSource { | |||
[SameObject] readonly attribute Gamepad? gamepad; | |||
}; | |||
</syntaxhighlight> | |||
== External Links == | |||
* [https://www.w3.org/TR/webxr-gamepads-module-1/ Specification] | |||
* [https://github.com/immersive-web/webxr-gamepads-module GitHub] | |||
{{Navbox specifications}} | |||
[[Category:Specifications]] |
Latest revision as of 02:13, 9 July 2022
Status | WD |
---|---|
Last Updated | 26 April 2022 |
Editor(s) | Brandon Jones, Manish Goregaokar, Rik Cabanier |
Former Editor(s) | Nell Waliczek |
CG or WG? | WG |
The WebXR Gamepads Module defines how button, trigger, thumbstick, and touchpad data are reported by adding a Gamepad object exposed on an XRInputSource.
WebIDL[edit]
partial interface XRInputSource {
[SameObject] readonly attribute Gamepad? gamepad;
};