SDL/src/haptic/windows
Cameron Gutman 715e7bda22 haptic: Don't enumerate joysticks if the joystick subsystem is active
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.
2021-11-09 01:43:44 -06:00
..
SDL_dinputhaptic.c haptic: Don't enumerate joysticks if the joystick subsystem is active 2021-11-09 01:43:44 -06:00
SDL_dinputhaptic_c.h Rename haptic methods to avoid confusion with joystick: 2021-06-10 16:41:09 -07:00
SDL_windowshaptic.c Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_windowshaptic_c.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_xinputhaptic.c haptic: Don't enumerate joysticks if the joystick subsystem is active 2021-11-09 01:43:44 -06:00
SDL_xinputhaptic_c.h Rename haptic methods to avoid confusion with joystick: 2021-06-10 16:41:09 -07:00