godot-extended-libraries/godot-debug-menu

The most minor problem ever: F3 to "pop up"

Dangomation opened this issue · 1 comments

Not a big issue of course just a bit annoying that's all:

Having the key detection exclusively when the key is reported is annoying when you can "flicker" the Debug Menu Performance screen by holding the key.

image

What I replaced it with is of course a super simple solution I've done up myself.
Change to some sort of "just pressed" please. Thanks!

The current version has already fixed this:

if event.is_action_pressed("cycle_debug_menu"):

In all Godot versions, event.is_action_pressed() should already take care of ignoring echo events (key repeats when held down). I've never needed Input.is_action_just_pressed() in _event() for this reason (it's useful in _process()/_physics_process() though).