Closed takahirox closed 4 years ago
The polyfill updates XRInputSource.handedness from gamepad.hand.
XRInputSource.handedness
gamepad.hand
Gamepad.hand enum is 'left', 'right', or '' while XRInputSrouce.handedness (XRHandedness) enum is 'left', 'right', or 'none'.
Gamepad.hand
'left'
'right'
''
XRInputSrouce.handedness
XRHandedness
'none'
https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/hand https://www.w3.org/TR/webxr/#xrinputsource-interface
Then I think the polyfill should sets none to XRInputSource.handedness if gamepad.hand is '' rather than always just copying gamepad.hand to XRInputSource.handedness.
none
LGTM. Thanks!
The polyfill updates
XRInputSource.handedness
fromgamepad.hand
.Gamepad.hand
enum is'left'
,'right'
, or''
whileXRInputSrouce.handedness
(XRHandedness
) enum is'left'
,'right'
, or'none'
.https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/hand https://www.w3.org/TR/webxr/#xrinputsource-interface
Then I think the polyfill should sets
none
toXRInputSource.handedness
ifgamepad.hand
is''
rather than always just copyinggamepad.hand
toXRInputSource.handedness
.