-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
X11: is_action_pressed
returns incorrect value when key was pressed during scene loading
#82262
Comments
New to this, but from my testing is a one shot at the beginning of the press, but and are continuously triggered, but I don't think this is clearly spelled out in the documentation. Continuously True:
One-shot at start:
I wonder if something is mixed up between Input and InputEvent since the event version of |
This is because InputEvents only exist on |
Can't reproduce in dev5 and later. Tested on Windows. |
Haven't had the chance to test on a Windows machine yet, but when running it on Linux under Wine I can't reproduce either. So it seems that this is a Linux-specific issue. |
Confirmed reproducible on Linux/X11 as of 4.2-beta5 / e5bacbc. |
is_action_pressed
returns incorrect value when it was pressed during scene loading
is_action_pressed
returns incorrect value when it was pressed during scene loadingis_action_pressed
returns incorrect value when key was pressed during scene loading
Godot version
Godot_v4.2-dev4_linux.x86_64
System information
Ubuntu 22.04 Vulkan Forward+
Issue description
If an action is pressed during the loading of a scene, even if the key is released,
is_action_pressed()
will always consider it pressed afterward.The behavior is the same for
is_action_pressed
andget_vector
,get_axis
. On the other handis_key_pressed
is working as expected.On
4.2-dev4
and4.2-dev5
, I was able to reproduce it relatively easily (50% of the time). I could not with4.2-dev3
or earlier or with4.1
.I've seen it during the first loading of a scene as well as during a
reload_current_scene()
.Steps to reproduce
is_action_pressed
andis_key_pressed
, it the issue occurs, they are not consistentnote: On a minimal project the scene is loading fast, so it's easy to miss the time window.
Minimal reproduction project
action_pressed_bug.zip
The text was updated successfully, but these errors were encountered: