SamsungInternet / support

For general Samsung Internet support. You can use the Issues register here as a way to ask support questions.
MIT License
18 stars 0 forks source link

navigator.getGamepads() returns wrong hand in GearVR #22

Closed vincentfretin closed 6 years ago

vincentfretin commented 6 years ago

With Samsung Internet for Gear VR 5.4.10.4

navigator.getGamepads() is returning the wrong hand in GearVR. When I select left hand in the GearVR system preferences, navigator.getGamepads() returns hand: "right": samsung_internet_left_hand

When I select right hand in the GearVR system preferences, navigator.getGamepads() returns hand: "left" : samsung_internet_right_hand

This is completely reversed.

For comparison with Oculus browser that has the correct behavior, see https://github.com/aframevr/aframe/issues/2844#issuecomment-340179000

poshaughnessy commented 6 years ago

Thank you @vincentfretin, sorry for the slow follow-up, we'll get back to you on this next week.

mkeblx commented 6 years ago

Hi @vincentfretin, this issue has now been fixed for next release. Thanks again.

poshaughnessy commented 6 years ago

Hoping we can close this issue now? Anyone able to just confirm it's fixed in the v5.6 release? (I tried a little test case here, source code here, but I'm not getting any useful output from navigator.getGamepads(), not sure why... @mkeblx Might you know where I'm going wrong? :))

vincentfretin commented 6 years ago

I confirm this is resolved in the latest version. With aframe, the controller is showing in the left or right hand depending on the system preferences.

poshaughnessy commented 6 years ago

Thanks @vincentfretin !