aframe-extras
aframe-extras copied to clipboard
Fix WebXR handedness search for gamepad-controls
At least in the current version of the WebXR spec, handedness
is a property of XRInputSource (xrController
), rather than Gamepad.
This leads to an issue discussed on the WebXR Discord chat (https://discord.com/channels/758943204715659264/759166287901098024/856977980219981844) where the controls attach to the wrong hand, even when the correct hand shows up later.
I have built dist with this change in my own fork and can confirm that it fixes the issue on Quest 2
Live example: https://glitch.com/edit/#!/enormous-fire-shop
Could this PR be merged, please? Or let us know why not.
This PR is merged in the community fork https://github.com/c-frame/aframe-extras/issues/5
The changes are now also in this repo.