Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
joystick: Quit drivers in reverse order to ensure dependencies are no…
…t broken SDL_WINDOWS_JoystickDriver depends on callbacks in SDL_RAWINPUT_JoystickDriver and SDL_HIDAPI_JoystickDriver being available. It also manages the common WindowProc used for joystick detection in both WINDOWS and RAWINPUT drivers. If we don't tear them down backwards, there's a window of time where we could invoke RAWINPUT_WindowProc() after RAWINPUT_JoystickQuit() was called.
- Loading branch information