helloparthshah / StadiaWireless

Stadia Wireless enables you to use your stadia controller wirelessly. Not just with stadia, but with any game.
MIT License
447 stars 26 forks source link

Mobile-end not detecting some controls #12

Closed tyb51 closed 2 years ago

tyb51 commented 2 years ago

Describe the bug On my mobile end the directional pad, joysticks and the left and right triggers are not detecting any input and thus not sending any data to the desktop server. I know the controller is working because moving the joystick up and down causes the browser window on my phone move up and down, but the webapp doesn't seem to catch any of that.

To Reproduce

  1. Open Stadia Wireless on desktop
  2. Open webbrowser on mobile
  3. Connect controller (which gets detected) on mobile
  4. Use controller. Confirm inputs on both mobile and desktop webserver

Expected behavior Full transmission of controls to desktop.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

helloparthshah commented 2 years ago

Can you try opening https://gamepad-tester.com/ and see if you have the same problem with that too

tyb51 commented 2 years ago

Yes, I already have. Same result. I was thinking it might be related to the non binary input value of the joystick an trigger? (Doesn't explain the directional pad tho...)

helloparthshah commented 2 years ago

Can you attach the logs by clicking the bottom right icon that looks like a gear.

tyb51 commented 2 years ago

Screenshot_2022-07-12-21-46-47-00_d365b52accad0f47adbc08c16219827d

helloparthshah commented 2 years ago

I have no way of testing this but it might be related to how your device interfaces with the controller. Instead of letting the webpage access the controller the os might be capturing it