Skip to content

Commit

Permalink
set SDL_HINT_JOYSTICK_WGI to 0 to address some controller duping …
Browse files Browse the repository at this point in the history
…issues (#780)

* try no wgi

* windows only
  • Loading branch information
briaguya-ai authored Jan 4, 2025
1 parent 78d951e commit b1447cd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/controller/deviceindex/ShipDeviceIndexMappingManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@

namespace Ship {
ShipDeviceIndexMappingManager::ShipDeviceIndexMappingManager() : mIsInitialized(false) {
#if _WIN32
SDL_SetHintWithPriority(SDL_HINT_JOYSTICK_WGI, "0", SDL_HINT_DEFAULT);
#endif
UpdateControllerNamesFromConfig();
}

Expand Down

0 comments on commit b1447cd

Please sign in to comment.