From 76783f2ab01f29ca4eee9de251a90dc088ad0f55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20R=2E=20Miguel?= <36349314+vrmiguel@users.noreply.github.com> Date: Sat, 9 May 2020 12:18:30 -0300 Subject: [PATCH] Add optional support for L-trigger on controllers. --- enhancements/L-trigger-mapping/README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 enhancements/L-trigger-mapping/README.md diff --git a/enhancements/L-trigger-mapping/README.md b/enhancements/L-trigger-mapping/README.md new file mode 100644 index 00000000..0538f094 --- /dev/null +++ b/enhancements/L-trigger-mapping/README.md @@ -0,0 +1,12 @@ +# L-trigger mapping + +Some parts of the code might require the pressing of the L-trigger for testing reasons. + +If you need that, alter `controller_sdl.c`. +In the following line: +``` + if (SDL_GameControllerGetButton(sdl_cntrl, SDL_CONTROLLER_BUTTON_LEFTSHOULDER)) pad->button |= Z_TRIG; +``` +Replace `Z_TRIG` with `L_TRIG`, save and rebuild. + +On a DS4, this now means that Z-trigger will be mapped to L2 and the L-trigger to L1.