Ryujinx-SDL/src/joystick
David Ludwig 7e5340c5ac Fix for Bug 5034 - Replugging in a controller crashes on macOS in SDL 2.0.12
This is a multi-part fix, and is the 2nd attempt at a fix for Bug 5034.  Here
are the problems being addressed:

1. On macOS 10.14.x and earlier, trying to call IOHIDDeviceUnscheduleFromRunLoop
   without a prior, paired call to IOHIDDeviceScheduleWithRunLoop, appears to
   lead to a crash.  A per-device flag has been added to make sure that these
   calls are paired.
2. DARWIN_JoystickDetect was free'ing its SDL_joystick's hwdata field
   (via FreeDevice) without setting it to NULL, and DARWIN_JoystickRumble wasn't
   checking for a NULL hwdata.  FreeDevice will now set hwdata to NULL and
   DARWIN_JoystickRumble will check for a NULL hwdata.
2020-03-17 17:34:24 -04:00
..
android Unified code to standardize joystick names 2020-03-12 19:47:30 -07:00
bsd Moved rumble expiration to the main joystick handling level, and prevent sending the driver layer duplicate rumble requests. 2020-02-04 12:48:53 -08:00
darwin Fix for Bug 5034 - Replugging in a controller crashes on macOS in SDL 2.0.12 2020-03-17 17:34:24 -04:00
dummy Moved rumble expiration to the main joystick handling level, and prevent sending the driver layer duplicate rumble requests. 2020-02-04 12:48:53 -08:00
emscripten Unified code to standardize joystick names 2020-03-12 19:47:30 -07:00
haiku Unified code to standardize joystick names 2020-03-12 19:47:30 -07:00
hidapi Fixed compiler warning 2020-03-16 19:15:28 -07:00
iphoneos Unified code to standardize joystick names 2020-03-12 19:47:30 -07:00
linux Unified code to standardize joystick names 2020-03-12 19:47:30 -07:00
psp Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
steam Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
virtual virtual joysticks: move variable decls to top of function (for C90 compat; Bug 5038) 2020-03-16 17:19:18 -04:00
windows Fixed bug 4477 - Support more than 4 XInput-capable devices on Windows 2020-03-16 12:25:02 -07:00
controller_type.h Fixed bug 4854 - Add a way to extend the values in controller_type.h 2020-03-02 10:37:28 -08:00
SDL_gamecontroller.c Fixed bug 4477 - Support more than 4 XInput-capable devices on Windows 2020-03-16 12:23:38 -07:00
SDL_gamecontrollerdb.h Fixed bug 5028 - Virtual Joysticks (new joystick backend) 2020-03-13 19:08:45 -07:00
SDL_joystick_c.h Fixed bug 4477 - Support more than 4 XInput-capable devices on Windows 2020-03-16 12:23:38 -07:00
SDL_joystick.c Fixed bug 4477 - Support more than 4 XInput-capable devices on Windows 2020-03-16 12:23:38 -07:00
SDL_sysjoystick.h Fixed bug 4477 - Support more than 4 XInput-capable devices on Windows 2020-03-16 12:23:38 -07:00
sort_controllers.py Added support for SDL hints in the game controller mapping database 2020-03-12 19:47:28 -07:00
usb_ids.h Added support for the paddles on the Xbox One Elite Series 1 controller 2020-01-22 11:28:35 -08:00