-
-
Notifications
You must be signed in to change notification settings - Fork 22k
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
keys_pressed
does not seem to accurately reflect the keys being pressed on Wayland
#100879
Comments
Looking into this further.. It seems to be reproducible by:
Some logging of the bug (print statements put in the if and else block of: Line 694 in 2582793
|
keys_pressed
does not seem to accurately reflect the keys being pressed on Waylandkeys_pressed
does not seem to accurately reflect the keys being pressed ~on Wayland~
keys_pressed
does not seem to accurately reflect the keys being pressed ~on Wayland~keys_pressed
does not seem to accurately reflect the keys being pressed on Wayland
I don't think this is a wayland issue. I have a PR open that moves away from using the |
Hi @pcvonz, thanks for the report and for investigating! I did some further research and it looks like the issue actually does actually come from the Wayland backend. As you found out, the keycodes come "composed" with the various modifier keys, which should not happen (you can see that when using the X11 display driver). I just pushed a PR with a proposed fix over at #101848. |
Tested versions
System information
Manjaro Gnome Wayland
Issue description
Keys pressed seems to not be reset sometimes.
I noticed this issue because the method
is_anything_pressed
returnstrue
when I was trying out the new tooltip feature, even it should be returningfalse
.godot/core/input/input.cpp
Line 298 in 75ce426
Steps to reproduce
It seems like I can trigger it fairly consistently by searching and then opening a file in the filesystem browser.
Screencast.From.2024-12-28.12-58-29.mp4
Minimal reproduction project (MRP)
This is just a simple project with a tool script that calls
is_anything_pressed
project.zip
The text was updated successfully, but these errors were encountered: