Repository navigation
GamePad Triggers (L2 and R2) #58
luttje
started this conversation in
🐕🦺 Tips & Tricks
Replies: 2 comments 2 replies
|
Hello, I'm having a problem due to my computer skills. I don't know how to simulate pressing the L2 and R2 keys completely (I want to assign them to a keyboard). Could you please give me specific instructions? |
2 replies
|
Months later still super helpful, thank you for the help. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment





Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
🎮 Tips on configuring L2 and R2
These buttons way down on the back of a GamePad are called 'Triggers'.

These are often referred to as the L2 and R2 buttons, but are quite different from buttons. Buttons can be pressed or not (binary), but the triggers can be pressed a bit (0), half way (.5), completely (1) and everything in between!
To react to a GamePad Trigger being pressed, you can add a trigger (confusingly named the same):

Choose Left or Right to decide which trigger on the GamePad should activate this mapping.
Mapping an action
There are several mappings you can make with a trigger input.
You can map a script action to this trigger.
It could look something like this:

You could map a GamePad Stick action:
This GamePad Stick action will use the amount the trigger is pressed to simulate moving the Right Stick on GamePad 1 to the right. If you set the

Trigger Input Delta Scale Xto-1it would move to the left:When you now press your trigger on the gamepad, gamepad 1 will be simulated to have it's right stick move:

As you can see, the stick stays to the right if we release the GamePad trigger quickly. This is because when the trigger returns to 0, it doesn't fire a trigger. Therefor we configure the stick to 0,0 after 500 ms.
🐛 Notes
As you can see, the releasing of the trigger doesn't activate the mapping. This causes a GamePad Stick simulation to leave the stick hanging and requires a super janky workaround. I'll work on fixing this in the future (tracked in issue #59)
All reactions