unknownskl / greenlight

Greenlight is an open-source client for xCloud and Xbox home streaming made in Typescript.
MIT License
2.03k stars 117 forks source link

[Bug] UPS detected as controller 1 #1254

Open lplade opened 1 week ago

lplade commented 1 week ago

Describe the bug

My CyberPower uninterruptible power supply, connected to my PC by USB and managed with HID interface, is showing up as 5-axis controller 1 when I press a button on my gamepad. My Xbox Series gamepad is connected by USB and shows up as controller 2. My Xbox apparently attaches fake "contoller 1" to the running session and ignores actual controller 2.

To Reproduce

  1. Boot the system with UPS attached by USB.
  2. Plug in Xbox controller by USB.
  3. Launch Greenlight
  4. Go to Settings, Input
  5. Controllers Detected is empty
  6. Press button on gamepad

Expected behavior

Should ignore generic HID devices and only map actual game controllers. An alternative would be some UI to disable or manually map controllers to numbers.

Environment

- OS: Windows 10 10.0.19045 Build 19045
- Device: PC
- Greenlight version: 2.3.1

Anything else?

Capture

New issue

lplade commented 1 week ago

Workaround: While Greenlight is running, disable "CyberPower Battery Backup" in Device Manager. Disconnect, reconnect controller. Press button on controller, re-detects as controller 1. Re-enable UPS in Device manager; now that is detected as controller 2.