WootingKb / wootility-issues

A place to report issues with the Wootility and help with feedback on existing issues
24 stars 3 forks source link

Flipping gamepad mode between Xbox Controller and other option can break gamepad tester #82

Open PastaJ36 opened 3 years ago

PastaJ36 commented 3 years ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior: (assuming starting with Xbox Controller selected)

  1. Go to Settings
  2. Press Legacy Controller
  3. Wait for keyboard to connect
  4. Press Xbox Controllers
  5. Check if Gamepad Tester works
  6. If it still works, repeat until it's broken

Problem seems to be in Chomium. The gamepad tester uses the web Gamepad API, when it breaks navigator.getGamePads() will just return all null.

I've tried testing it a Chrome instance open at the same time and https://gamepad-tester.com/ open. The website kept working, but Wootility broke. Could try updating Electron, see if it fixes this issue.

Rocky04 commented 3 years ago

Hmm, I'm not sure if that is really the case...

The tester in the Wootility only works when Win has loaded the Xbox controller device, it can be of course that the site on a dedicated browser is a bit faster but besides they should behave the same.

This happened to me after some testing:

Edit: By the way, due to this I had recommended to use the Win tool over the site because it can happen from time to time that there is a problem within the browser instance. Then you need to restart the browser while to ensure it was really dead in between. I assume the same thing can happen to Chromium used by Electron. So you just got lucky that your Chrome instance hasn't broke.

Edit 2: I assume it maybe has something to do with a sub process. I can remember sometimes when this happened toggling back and forth has fixed it, but on the test this wasn't the case while replugging the keyboard has worked.