TimedInput for Godot
Adds a node type that monitors an input action for long holds, short taps and multiple taps. Can emit signals or send InputEventActions. Which events are monitored and what is done in response are configurable.
The included demo covers much of the functionality of the addon. Try out the demo at https://hatmix.itch.io/godot-timed-input
(Feb 2025 update) I probably won't be maintaining this addon and will use G.U.I.D.E instead.
TimedInput types
Configuration options
Signals
tapped (duration: float)
multitapped (count: int)
hold_started
holding (current_duration: float)
hold_finished(total_duration: float)
Events
When enabled, input actions will be added based on the action being monitored.
[action name]_tap
[action name]_multitap
[action name]_hold_started
[action name]_hold_finished
Note that events are experimental and more likely to receive breaking changes.
Motivation
This addon grew out of coding my entry for the 1-Button Jam, OBMG (One Button Mini-Golf).
Attribution
- imjp94/gd-plug used for plugin management
- bitwes/GUT used for testing
- Stopwatch icon made by Lorc. Available at game-icons.net.