Ryujinx-SDL/src/joystick
Sam Lantinga 24df68ea33 Fixed bug 2833 - Access Violation on SDL_PollEvent after init, delay and quit of joystick subsystem
Jan Klass

Not sure if this is limited to the joystick subsystem,
but I created a minimal program for reproducibility,
which is attached.

The issue occurs with my gamepad Razer Onza (an xbox-style gamepad) plugged in.
On initialization, the gamepad is being recognized.
After quitting the subsystem, the poll will receive the joystick added event,
which it instantly handles itself, calling SDL_SYS_JoystickDetect again,
which this time calls IDirectInput8_EnumDevices with dinput = NULL (after it was released on quit).
This seems to lead to an access violation within said function, which I have no source for.
2016-10-07 16:32:58 -07:00
..
android Added SDL_PrivateJoystickAdded() and SDL_PrivateJoystickRemoved() 2016-08-26 12:18:08 -07:00
bsd Fixed freeing strings created by strdup() with SDL_free(). 2016-06-28 21:08:23 +02:00
darwin Added SDL_PrivateJoystickAdded() and SDL_PrivateJoystickRemoved() 2016-08-26 12:18:08 -07:00
dummy Updated copyright to 2016 2016-01-02 10:10:34 -08:00
emscripten Added SDL_PrivateJoystickAdded() and SDL_PrivateJoystickRemoved() 2016-08-26 12:18:08 -07:00
haiku Fixed freeing strings created by strdup() with SDL_free(). 2016-06-28 21:08:23 +02:00
iphoneos Added a new hint SDL_HINT_APPLE_TV_REMOTE_ALLOW_ROTATION. 2016-09-17 01:31:07 -03:00
linux Added SDL_PrivateJoystickAdded() and SDL_PrivateJoystickRemoved() 2016-08-26 12:18:08 -07:00
psp Patched to compile on various platforms. 2016-04-12 18:11:36 -04:00
windows Fixed bug 2833 - Access Violation on SDL_PollEvent after init, delay and quit of joystick subsystem 2016-10-07 16:32:58 -07:00
SDL_gamecontroller.c Fixed recentering triggers when the application doesn't have focus 2016-10-07 16:13:37 -07:00
SDL_gamecontrollerdb.h Fixed sorting and name of XBox wireless controller entry 2016-08-16 12:02:22 -07:00
SDL_joystick_c.h Added SDL_PrivateJoystickAdded() and SDL_PrivateJoystickRemoved() 2016-08-26 12:18:08 -07:00
SDL_joystick.c Fixed recentering triggers when the application doesn't have focus 2016-10-07 16:13:37 -07:00
SDL_sysjoystick.h Fixed recentering triggers when the application doesn't have focus 2016-10-07 16:13:37 -07:00
sort_controllers.py Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00