Skip to content

Commit b1447cd

Browse files
authored
set SDL_HINT_JOYSTICK_WGI to 0 to address some controller duping issues (Kenix3#780)
* try no wgi * windows only
1 parent 78d951e commit b1447cd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/controller/deviceindex/ShipDeviceIndexMappingManager.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313

1414
namespace Ship {
1515
ShipDeviceIndexMappingManager::ShipDeviceIndexMappingManager() : mIsInitialized(false) {
16+
#if _WIN32
17+
SDL_SetHintWithPriority(SDL_HINT_JOYSTICK_WGI, "0", SDL_HINT_DEFAULT);
18+
#endif
1619
UpdateControllerNamesFromConfig();
1720
}
1821

0 commit comments

Comments
 (0)