SDL/src/joystick/windows
Cameron Gutman 677dc1015c rawinput: Fix double detection of gamepads on some 3rd party X360 wireless receivers
The name that the Raw Input joystick driver pulls from the HID stack comes
from USB string descriptors contained on the device. For official wireless
receivers, this always contains "Xbox 360 Wireless Receiver for Windows"
which matches the friendly name that WGI provides.

3rd party Xbox 360 wireless receivers may have different strings in their
USB string descriptors (one uses "XBOX 360 For Windows" instead). This
fails to match WGI's name and causes Raw Input and WGI to both report the
same gamepad.

Since wireless Xbox 360 controllers seem to have a consistent VID/PID
regardless of the adapter enumerating them, we can also match on that to
catch these.

The duplicate case reported to me was:
Controller (XBOX 360 For Windows) - 030000005e040000a102000000007200
Xbox 360 Wireless Receiver for Windows - 030000005e0400000000000000007701
2022-03-09 21:19:53 -08:00
..
SDL_dinputjoystick.c Workaround for crash in CoUninitialize() 2022-02-21 16:24:45 -08:00
SDL_dinputjoystick_c.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_rawinputjoystick.c rawinput: Fix double detection of gamepads on some 3rd party X360 wireless receivers 2022-03-09 21:19:53 -08:00
SDL_rawinputjoystick_c.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_windows_gaming_input.c Revert "fix compiler warnings in SDL_windows_gaming_input.c" 2022-01-28 20:40:19 -05:00
SDL_windowsjoystick.c Workaround for crash in CoUninitialize() 2022-02-21 16:24:45 -08:00
SDL_windowsjoystick_c.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_xinputjoystick.c Use the real device VID/PID when seeing the Steam virtual controller 2022-02-11 22:10:33 -08:00
SDL_xinputjoystick_c.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00