From 81822aeffaaf9afdccfc2dd8df9d4eff7f893d67 Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Mon, 11 May 2026 21:42:04 -0700 Subject: [PATCH] Don't emulate triggers on gamecube-style controllers by default --- lib/input.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/input.cpp b/lib/input.cpp index 1eeeed1..b1931c5 100644 --- a/lib/input.cpp +++ b/lib/input.cpp @@ -369,6 +369,9 @@ SDL_JoystickID add_controller(SDL_JoystickID which) noexcept { return -1; } controller.m_isGameCube = SDL_GetGamepadType(ctrl) == SDL_GAMEPAD_TYPE_GAMECUBE; + if (controller.m_isGameCube || (SDL_GetGamepadType(ctrl) == SDL_GAMEPAD_TYPE_NINTENDO_SWITCH_PRO && controller.m_pid == 0x2073)) { + controller.m_deadZones.emulateTriggers = false; + } const auto props = SDL_GetGamepadProperties(ctrl); controller.m_hasRumble = SDL_GetBooleanProperty(props, SDL_PROP_GAMEPAD_CAP_RUMBLE_BOOLEAN, true); controller.m_hasRgbLed = SDL_GetBooleanProperty(props, SDL_PROP_GAMEPAD_CAP_RGB_LED_BOOLEAN, false);