SDL/src/joystick
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
..
android Handle menu button press from controller 2022-02-02 21:21:44 -08:00
bsd Updated copyright for 2022 2022-01-03 09:40:21 -08:00
darwin Updated copyright for 2022 2022-01-03 09:40:21 -08:00
dummy Updated copyright for 2022 2022-01-03 09:40:21 -08:00
emscripten Updated copyright for 2022 2022-01-03 09:40:21 -08:00
haiku Updated copyright for 2022 2022-01-03 09:40:21 -08:00
hidapi GameCubeAdapter: Add suppport for all rumble modes 2022-02-23 07:03:02 -08:00
iphoneos Allow reading background events for MFi controllers 2022-03-08 18:42:13 -08:00
linux Updated copyright for 2022 2022-01-03 09:40:21 -08:00
os2 os2joystick: fix uninitialized use of local var 'maxdevs' 2022-01-09 20:33:32 +03:00
psp Updated copyright for 2022 2022-01-03 09:40:21 -08:00
steam Updated copyright for 2022 2022-01-03 09:40:21 -08:00
virtual Updated copyright for 2022 2022-01-03 09:40:21 -08:00
vita PSVita: send initial SDL_JOYDEVICEADDED events 2022-01-27 08:47:53 -08:00
windows rawinput: Fix double detection of gamepads on some 3rd party X360 wireless receivers 2022-03-09 21:19:53 -08:00
check_8bitdo.sh Fixed running on older versions of iOS 2020-04-27 13:31:10 -07:00
controller_type.h Clarify that one of the PIDs of the Xbox Elite Series 2 controller is used in Bluetooth mode 2021-08-14 00:31:46 -07:00
SDL_gamecontroller.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_gamecontrollerdb.h Added the hint SDL_HINT_JOYSTICK_ROG_CHAKRAM to control whether ROG Chakram mice show up as joysticks 2022-02-15 13:07:51 -08:00
SDL_joystick.c Fixed the SDL controller type for USB_PRODUCT_XBOX_ONE_XINPUT_CONTROLLER 2022-03-08 09:58:24 -08:00
SDL_joystick_c.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_sysjoystick.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
sort_controllers.py Fixed warnings on Windows 2021-06-24 18:09:04 -07:00
usb_ids.h Don't send output reports to the Victrix Pro FS v2 2022-01-16 09:23:58 -08:00