SDL/src/joystick
Sam Lantinga e86f494317 Hold the joystick lock while opening the HID device on non-Android platforms
On Windows the main thread can be enumerating DirectInput devices while the Windows.Gaming.Input thread is calling back with a new controller available, and in this case HIDAPI_IsDevicePresent() returned false since the controller initialization hadn't completed yet, creating a duplicate controller.

Fixes https://github.com/libsdl-org/SDL/issues/7304

(cherry picked from commit ece8a7bb8e2dae9cb53115980cea9ef1213a0160)
2023-02-16 09:53:33 -08:00
..
android Map the Android MENU button back to the SDL MENU key 2023-02-14 18:04:30 -08:00
bsd Updated copyright for 2023 2023-01-09 09:48:21 -08:00
darwin Updated copyright for 2023 2023-01-09 09:48:21 -08:00
dummy Updated copyright for 2023 2023-01-09 09:48:21 -08:00
emscripten Updated copyright for 2023 2023-01-09 09:48:21 -08:00
haiku Updated copyright for 2023 2023-01-09 09:48:21 -08:00
hidapi Hold the joystick lock while opening the HID device on non-Android platforms 2023-02-16 09:53:33 -08:00
iphoneos Updated copyright for 2023 2023-01-09 09:48:21 -08:00
linux Updated copyright for 2023 2023-01-09 09:48:21 -08:00
n3ds Updated copyright for 2023 2023-01-09 09:48:21 -08:00
os2 Updated copyright for 2023 2023-01-09 09:48:21 -08:00
ps2 Updated copyright for 2023 2023-01-09 09:48:21 -08:00
psp Updated copyright for 2023 2023-01-09 09:48:21 -08:00
steam Updated copyright for 2023 2023-01-09 09:48:21 -08:00
virtual Updated copyright for 2023 2023-01-09 09:48:21 -08:00
vita Updated copyright for 2023 2023-01-09 09:48:21 -08:00
windows Backport simplify flags PR #7220 2023-02-09 17:19:46 -08:00
check_8bitdo.sh Avoid use of deprecated egrep/fgrep 2022-11-24 02:59:41 -08:00
controller_type.c Added support for the ThrustMaster eSwap PRO Controller Xbox 2023-01-03 15:13:50 -08:00
controller_type.h Separate the controller protocol from the controller style 2022-06-15 20:46:01 -07:00
SDL_gamecontroller.c Updated copyright for 2023 2023-01-09 09:48:21 -08:00
SDL_gamecontrollerdb.h Sorted controller list 2023-02-10 17:18:32 -08:00
SDL_joystick.c Updated copyright for 2023 2023-01-09 09:48:21 -08:00
SDL_joystick_c.h Updated copyright for 2023 2023-01-09 09:48:21 -08:00
SDL_sysjoystick.h Updated copyright for 2023 2023-01-09 09:48:21 -08:00
sort_controllers.py Don't accept official mappings for controllers that aren't unique 2023-02-02 08:41:57 -08:00
usb_ids.h Added support for the Logitech ChillStream 2023-02-06 13:28:44 -08:00