From ea60da5b94ed8ec69aad69ca46e81567ab99ed2a Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 8 Jul 2023 18:18:22 -0700 Subject: [PATCH] Fixed mapping BTN_TR2 to right trigger --- src/joystick/linux/SDL_sysjoystick.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/joystick/linux/SDL_sysjoystick.c b/src/joystick/linux/SDL_sysjoystick.c index c23d3d551..c3d68e1f5 100644 --- a/src/joystick/linux/SDL_sysjoystick.c +++ b/src/joystick/linux/SDL_sysjoystick.c @@ -2386,7 +2386,7 @@ static SDL_bool LINUX_JoystickGetGamepadMapping(int device_index, SDL_GamepadMap #endif } - if (!(mapped & MAPPED_TRIGGER_LEFT) && joystick->hwdata->has_key[BTN_TR2]) { + if (!(mapped & MAPPED_TRIGGER_RIGHT) && joystick->hwdata->has_key[BTN_TR2]) { out->righttrigger.kind = EMappingKind_Button; out->righttrigger.target = joystick->hwdata->key_map[BTN_TR2]; mapped |= MAPPED_TRIGGER_RIGHT;