immersive-web / webxr

Repository for the WebXR Device API Specification.
https://immersive-web.github.io/webxr/
Other
2.98k stars 382 forks source link

Detecting if an `XRInputSource` is an auxiliary or a primary input source #1358

Open hybridherbst opened 8 months ago

hybridherbst commented 8 months ago

The spec just states the definitions of auxiliary and primary input sources:

An XR input source is a primary input source if it supports a primary action. An XR input source is an auxiliary input source if it does not support a primary action

but it does not provide a mechanism for applications to query if an XRInputSource does support a primary action.

Is there such a mechanism, and if not, what is the recommended approach
for applications to distinguish between auxiliary and primary input sources?

Usecase description:

Potential workaround: