summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/SDL/SDL.cpp
diff options
context:
space:
mode:
authorAdmiral H. Curtiss <pikachu025@gmail.com>2024-11-03 16:32:20 +0100
committerGitHub <noreply@github.com>2024-11-03 16:32:20 +0100
commit53ede795a2a7406872f0f5c872c7f67bd22f65e4 (patch)
treed011c866843539f6e6e4bfc474e7690e7a1a1421 /Source/Core/InputCommon/ControllerInterface/SDL/SDL.cpp
parent97931a718f3b38993e8312a1e4d0fcde47f9c2de (diff)
parent2f38a00534cd488d5e5ff6f78ef36fb754d603d0 (diff)
Merge pull request #13167 from dreamsyntax/dualsense-player-led-disable
InputCommon: Disable Player LED for DualSense Controllers by default
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/SDL/SDL.cpp')
-rw-r--r--Source/Core/InputCommon/ControllerInterface/SDL/SDL.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/SDL/SDL.cpp b/Source/Core/InputCommon/ControllerInterface/SDL/SDL.cpp
index 88703c18a7..324619c927 100644
--- a/Source/Core/InputCommon/ControllerInterface/SDL/SDL.cpp
+++ b/Source/Core/InputCommon/ControllerInterface/SDL/SDL.cpp
@@ -435,6 +435,9 @@ InputBackend::InputBackend(ControllerInterface* controller_interface)
// We want buttons to come in as positions, not labels
SDL_SetHint(SDL_HINT_GAMECONTROLLER_USE_BUTTON_LABELS, "0");
+ // Disable DualSense Player LEDs; We already colorize the Primary LED
+ SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_PS5_PLAYER_LED, "0");
+
m_hotplug_thread = std::thread([this] {
Common::ScopeGuard quit_guard([] {
// TODO: there seems to be some sort of memory leak with SDL, quit isn't freeing everything up