From b1447cdd7182a41feacd51206e8ae63c4a06ab76 Mon Sep 17 00:00:00 2001 From: briaguya <70942617+briaguya-ai@users.noreply.github.com> Date: Sat, 4 Jan 2025 09:13:19 -0800 Subject: [PATCH] set `SDL_HINT_JOYSTICK_WGI` to `0` to address some controller duping issues (#780) * try no wgi * windows only --- src/controller/deviceindex/ShipDeviceIndexMappingManager.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/controller/deviceindex/ShipDeviceIndexMappingManager.cpp b/src/controller/deviceindex/ShipDeviceIndexMappingManager.cpp index 8fbf318..44e721f 100644 --- a/src/controller/deviceindex/ShipDeviceIndexMappingManager.cpp +++ b/src/controller/deviceindex/ShipDeviceIndexMappingManager.cpp @@ -13,6 +13,9 @@ namespace Ship { ShipDeviceIndexMappingManager::ShipDeviceIndexMappingManager() : mIsInitialized(false) { +#if _WIN32 + SDL_SetHintWithPriority(SDL_HINT_JOYSTICK_WGI, "0", SDL_HINT_DEFAULT); +#endif UpdateControllerNamesFromConfig(); }