#How to detect double press of button godot4
4 messages · Page 1 of 1 (latest)
You could make a script that listens to the inputs and adds 1 to a counter each time a button is pressed, then have a timer that decreases that counter. If the counter = 2 or greater then double pressed = true if double pressed equals true perform the thing you want to happen then set the counter back to 0 so its ready for another double press right away.
you can adjust the timer interval to get the desired double press window you are looking for.
Check the documentation for input handling & timers, that should have enough information to get it working.