From 77723e068e494af69c6faf2b7d1ad54e3f61a681 Mon Sep 17 00:00:00 2001 From: opm0 Date: Mon, 12 Oct 2020 08:38:25 -0400 Subject: [PATCH] Fix: L trigger is backwards (press = unpress) This fixes the issue on my Xbox Controller S (DirectInput), I don't have any other controllers so I can't test it. --- src/pc/controller/controller_sdl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pc/controller/controller_sdl.c b/src/pc/controller/controller_sdl.c index a71a82eb..8e5390ee 100644 --- a/src/pc/controller/controller_sdl.c +++ b/src/pc/controller/controller_sdl.c @@ -219,7 +219,7 @@ static void controller_sdl_read(OSContPad *pad) { update_button(i, new); } - update_button(VK_LTRIGGER - VK_BASE_SDL_GAMEPAD, ltrig > AXIS_THRESHOLD); + update_button(VK_LTRIGGER - VK_BASE_SDL_GAMEPAD, ltrig < AXIS_THRESHOLD); update_button(VK_RTRIGGER - VK_BASE_SDL_GAMEPAD, rtrig > AXIS_THRESHOLD); u32 buttons_down = 0;