Ryujinx-SDL/src/joystick/windows
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
..
SDL_dinputjoystick_c.h Fixed windows build 2016-10-01 14:50:22 -07:00
SDL_dinputjoystick.c Fixed build warnings and errors 2016-10-01 14:48:18 -07:00
SDL_mmjoystick.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_windowsjoystick_c.h WinRT: build fix in joystick code 2016-10-01 18:10:50 -04:00
SDL_windowsjoystick.c 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_xinputjoystick_c.h Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_xinputjoystick.c Allow using the game controller API with arcade sticks and other XInput devices 2016-02-16 13:47:37 -08:00