Hello. Is there a way to use the new input actions to make a toggle button for like sprinting? So pressing the button once would cause it to be true (starts sprinting) and pressing it a second time would cause it to be false (stop sprinting). I know it would be very easy to just do this in BP with a boolean, but Im just wondering if the new system can be used like that.
Wondering the exact same. Games now always allow for Toggle vs Hold interaction for accessibility. It should be handled by the input system.
And you can use toggle in the modifiers option of the IMC
You mean, this would be the wished behaviour ?
I believe creating a new trigger type, “Toggle Press“ would be the way. But I’m new to unreal so I’ll have to dig into it more for the actual implementation. I believe the trigger itself must be stateless, so this would need an external registry instance to keep pressed (or any variant) states toggles.
Indeed, having to handle a bool in the gameplay logic feels quite bad and not flexible.
Yes. that’s correct.
That is the action behavior you are looking for. In those options you should look for the one it suits better.
And then the use of booleans it’s your fail switch because they state if the action is happening or not.
Have you managed to achieve your result ?
Like I said before, only with booleans. My engin version doset have a toggle preset.
But it’s unreal ?
If so which version ?
Not even the toggle function in the blueprint ?
Would a Flip-Flop node be a good solution for this case? If it’s not present in 5.3, bool or flip-flop are probably your best bet. I used flip-flops for toggle functionality when I was learning on 5.1.
Hello there, the new Trigger you see is one I made (I’m on 5.7), I plan on implementing it in the future. But as discussed it can’t be standalone as triggers themselves are stateless (I believe) and a toggle needs, well to keep track of the state.
Options are :
- Maybe there are per input states that I can modify (new to UE, not to game dev, so I’ll have to look)
- Would need an external registry, preferably without having to create another file, so something name based and accessing a built-in memory.
Oh, I’ll have a look at this node
PS : yeah the node is okay, can be implemented with or without.


