SDL/src/joystick
Sam Lantinga d000c1cd6d Fixed bug 5155 - HIDAPI_JoystickDisconnected incorrect array shift
Anthony Pesch

I was looking into my own input bug and noticed an issue in the HIDAPI code while looking over it. I don't have a controller that goes down this path to test and try to provoke the issue, but it looks pretty straight forward.

The memmove to shift the joystick id array on disconnect isn't scaling the size by sizeof(SDL_JoystickID), likely corrupting the ids on disconnect.
2020-05-29 21:22:11 -07:00
..
android Fixed bug 5161 - Autodetect controller mappings based on the Linux Gamepad Specification 2020-05-29 13:37:21 -07:00
bsd Fixed bug 5161 - Autodetect controller mappings based on the Linux Gamepad Specification 2020-05-29 13:37:21 -07:00
darwin Fixed bug 5161 - Autodetect controller mappings based on the Linux Gamepad Specification 2020-05-29 13:37:21 -07:00
dummy Fixed bug 5161 - Autodetect controller mappings based on the Linux Gamepad Specification 2020-05-29 13:37:21 -07:00
emscripten Fixed bug 5161 - Autodetect controller mappings based on the Linux Gamepad Specification 2020-05-29 13:37:21 -07:00
haiku Fixed bug 5161 - Autodetect controller mappings based on the Linux Gamepad Specification 2020-05-29 13:37:21 -07:00
hidapi Fixed bug 5155 - HIDAPI_JoystickDisconnected incorrect array shift 2020-05-29 21:22:11 -07:00
iphoneos Fixed bug 5161 - Autodetect controller mappings based on the Linux Gamepad Specification 2020-05-29 13:37:21 -07:00
linux The zero happens at a higher level now 2020-05-29 14:54:07 -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 Fixed bug 5161 - Autodetect controller mappings based on the Linux Gamepad Specification 2020-05-29 13:37:21 -07:00
windows Fixed variable names to be consistent across functions 2020-05-29 14:48:05 -07:00
check_8bitdo.sh Fixed running on older versions of iOS 2020-04-27 13:31:10 -07:00
controller_type.h ControllerList: add PDP Faceoff Deluxe Audio Switch Controller and HORI Real Arcade Pro V Switch Edition 2020-05-06 11:19:52 -07:00
SDL_gamecontroller.c Initialize the raw_map before getting controller mappings from the driver 2020-05-29 14:48:39 -07:00
SDL_gamecontrollerdb.h Added support for the HORI Real Arcade Pro on Mac OSX and Linux 2020-05-06 12:19:58 -07:00
SDL_joystick.c Fixed bug 5161 - Autodetect controller mappings based on the Linux Gamepad Specification 2020-05-29 13:37:21 -07:00
SDL_joystick_c.h Fixed bug 5161 - Autodetect controller mappings based on the Linux Gamepad Specification 2020-05-29 13:37:21 -07:00
SDL_sysjoystick.h Fixed bug 5161 - Autodetect controller mappings based on the Linux Gamepad Specification 2020-05-29 13:37:21 -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 Razer Atrox Arcade Stick 2020-04-17 21:30:58 -07:00