You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a need to specify enumeration behaviour when a gamepad is exposed as both an XR input source with WebXR and as a traditional gamepad.
The WebXR specification requires that the XR input devices, which often have positional and orientation tracking features, are not enumerated by the gamepad api, but are still represented as gamepad objects.
When using a 2d browser within a VR or AR headset, a user may wish to use their controllers as a regular gamepad for web content that is not using WebXR. For example, they may wish to play a 2d WebGL game on a virtual monitor while using buttons on their tracked controllers to provide inputs that look like a gamepad to the content that is written against the Gamepad API. Often in such cases, two tracked controllers for XR may be combined into a single gamepad object, with the controls distributed between the two hands and mapping to a standard layout (eg, Left+Right Oculus touch controller buttons mapping to a single XBox one controller).
If a UA is to allow the gamepad api to enumerate such an emulated gamepad, the gamepad may disappear from the Gamepad API once a WebXR session is started, with a different set of controllers then appearing through the WebXR based enumeration.
Perhaps it would be beneficial to standardize this behavior consistently across UA's.
The text was updated successfully, but these errors were encountered:
There is a need to specify enumeration behaviour when a gamepad is exposed as both an XR input source with WebXR and as a traditional gamepad.
The WebXR specification requires that the XR input devices, which often have positional and orientation tracking features, are not enumerated by the gamepad api, but are still represented as gamepad objects.
When using a 2d browser within a VR or AR headset, a user may wish to use their controllers as a regular gamepad for web content that is not using WebXR. For example, they may wish to play a 2d WebGL game on a virtual monitor while using buttons on their tracked controllers to provide inputs that look like a gamepad to the content that is written against the Gamepad API. Often in such cases, two tracked controllers for XR may be combined into a single gamepad object, with the controls distributed between the two hands and mapping to a standard layout (eg, Left+Right Oculus touch controller buttons mapping to a single XBox one controller).
If a UA is to allow the gamepad api to enumerate such an emulated gamepad, the gamepad may disappear from the Gamepad API once a WebXR session is started, with a different set of controllers then appearing through the WebXR based enumeration.
Perhaps it would be beneficial to standardize this behavior consistently across UA's.
The text was updated successfully, but these errors were encountered: