Merge pull request #13156 from jordan-woyak/sdl-no-wgi

ControllerInterface/SDL: Disable SDL's Windows.Gaming.Input controller handling.
This commit is contained in:
JosJuice 2024-11-17 21:51:56 +01:00 committed by GitHub
commit 0f2c2c7ae0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -434,6 +434,8 @@ InputBackend::InputBackend(ControllerInterface* controller_interface)
SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_PS4_RUMBLE, "1");
// We want buttons to come in as positions, not labels
SDL_SetHint(SDL_HINT_GAMECONTROLLER_USE_BUTTON_LABELS, "0");
// We have our own WGI backend. Enabling SDL's WGI handling creates even more redundant devices.
SDL_SetHint(SDL_HINT_JOYSTICK_WGI, "0");
// Disable DualSense Player LEDs; We already colorize the Primary LED
SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_PS5_PLAYER_LED, "0");