SDL/src
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
..
atomic move bug #5333 fix to headers 2022-02-08 21:32:50 +03:00
audio SDL_openslES.c: Detect float support in runtime and use it 2022-02-22 08:31:14 -08:00
core wscons: Make USB keyboard input layout independent 2022-02-18 09:30:04 -08:00
cpuinfo Updated copyright for 2022 2022-01-03 09:40:21 -08:00
dynapi Dynapi: add SDL_GetTouchName() entry 2022-02-08 11:34:41 +01:00
events events: Add logging support for several missing event types 2022-03-06 15:02:53 -06:00
file allow MacOS build without SDL_FILE 2022-01-28 20:40:19 -05:00
filesystem psp/SDL_sysfilesystem.c: fixed a minor compiler warning. 2022-01-08 11:55:10 +03:00
haptic re-use return value of SDL_SetError/WIN_SetErrorFromHRESULT/SDL_OutOfMemory 2022-01-28 20:40:19 -05:00
hidapi Make sure the string properties are actually strings (thanks Nat!) 2022-03-09 13:54:23 -08:00
joystick rawinput: Fix double detection of gamepads on some 3rd party X360 wireless receivers 2022-03-09 21:19:53 -08:00
libm Updated copyright for 2022 2022-01-03 09:40:21 -08:00
loadso use SDL_InvalidParamError or SDL_assert instead of custom SDL_SetError 2022-01-28 20:40:19 -05:00
locale Updated copyright for 2022 2022-01-03 09:40:21 -08:00
main Updated to version 2.0.21 for development 2022-01-17 15:32:27 -08:00
misc minor update to winrt/SDL_sysurl.cpp 2022-02-04 20:03:50 +03:00
power Don't fail to get battery status if the upower refresh call fails 2022-02-04 14:02:44 -08:00
render reduced a few ifdefs, fixed an unused warning if built w/o SDL_HAVE_YUV. 2022-03-10 01:55:04 +03:00
sensor Updated copyright for 2022 2022-01-03 09:40:21 -08:00
stdlib Fixed whitespace 2022-03-04 11:01:55 -08:00
test Updated copyright for 2022 2022-01-03 09:40:21 -08:00
thread pthread/SDL_systhread.c: always include errno.h 2022-02-05 08:56:56 +03:00
timer timer: Fix Emscripten declaration-after-statement error 2022-01-22 12:27:54 +00:00
video Make Win32 fullscreen and borderless windows minimizable 2022-03-09 14:08:12 -08:00
SDL.c re-use return value of SDL_SetError/WIN_SetErrorFromHRESULT/SDL_OutOfMemory 2022-01-28 20:40:19 -05:00
SDL_assert.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_assert_c.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_dataqueue.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_dataqueue.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_error.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_error_c.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_hints.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_hints_c.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_internal.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_log.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00