WebXR Gamepads Module: Difference between revisions

From WebXR Wiki
Jump to navigation Jump to search
(Add boilerplate information)
(Basic summary + WebIDL)
 
Line 7: Line 7:
  |group = WG
  |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 ==
== External Links ==

Latest revision as of 02:13, 9 July 2022

WebXR Gamepads Module
StatusWD
Last Updated26 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;
};

External Links[edit]