mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-25 05:25:14 +00:00
Add optional support for L-trigger on controllers.
This commit is contained in:
parent
879958617f
commit
76783f2ab0
1 changed files with 12 additions and 0 deletions
12
enhancements/L-trigger-mapping/README.md
Normal file
12
enhancements/L-trigger-mapping/README.md
Normal file
|
@ -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.
|
Loading…
Reference in a new issue