mirror of
https://github.com/dolphin-emu/dolphin
synced 2025-10-05 16:03:02 +02:00
SDL: Disable DirectInput handling to work around hangs with the "8BitDo Ultimate 2" controller.
This commit is contained in:
@@ -139,6 +139,12 @@ InputBackend::InputBackend(ControllerInterface* controller_interface)
|
||||
// Disable DualSense Player LEDs; We already colorize the Primary LED
|
||||
SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_PS5_PLAYER_LED, "0");
|
||||
|
||||
// Disabling DirectInput support apparently solves hangs on shutdown for users with
|
||||
// "8BitDo Ultimate 2" controllers.
|
||||
// It also works around a possibly related random hang on a IDirectInputDevice8_Acquire
|
||||
// call within SDL.
|
||||
SDL_SetHint(SDL_HINT_JOYSTICK_DIRECTINPUT, "0");
|
||||
|
||||
m_hotplug_thread = std::thread([this] {
|
||||
Common::SetCurrentThreadName("SDL Hotplug Thread");
|
||||
|
||||
|
Reference in New Issue
Block a user