mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-01-24 02:41:00 +00:00
715e7bda22
The joystick subsystem has complex precedence logic to deal multiple competing backends like XInput, RawInput, and WGI. Let it fire the MaybeAdd callbacks for joystick devices, since it knows which backend will end up managing them. This resolves a situation where the RawInput joystick backend would take control of an XInput device but the XInput haptic backend would still create a haptic device. Since the XInput joystick backend didn't own the underlying joystick device, we'd end up with an orphaned haptic device that didn't work with SDL_HapticOpenFromJoystick() on the associated joystick device. |
||
---|---|---|
.. | ||
SDL_dinputhaptic.c | ||
SDL_dinputhaptic_c.h | ||
SDL_windowshaptic.c | ||
SDL_windowshaptic_c.h | ||
SDL_xinputhaptic.c | ||
SDL_xinputhaptic_c.h |