Is it possible without adding any game logic to have:
control scheme A: actions are triggered on hold
control scheme B: actions are triggered on toggle
A practical example is the action of sprinting.
On the keyboard, the player needs to hold shift to sprint.
On the gamepad, the player needs to press the thumbstick, but he doesn’t need to hold it. If he presses again it will stop sprinting (toggle).
I could check what is the current control scheme to differentiate those 2 cases, but I was wondering if there is a solution by using the interactions.
I’ve tried to use 2 actions: StartSprint and StopSprint :
On the keyboard, StartSprint has a Press interaction with Press, and StopSprint has a Press interaction with Release. This works.
But on the gamepad, StartSprint has a Press interaction with Press, and StopSprint has a Press interaction with Press, and both are conflicting.