Merge pull request #2 from opm0/fastbuild_prototype

Fix: L trigger is backwards (press = unpress)
This commit is contained in:
DorfDork 2020-10-12 11:29:01 -05:00 committed by GitHub
commit 87f9a19be6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;