-
-
Notifications
You must be signed in to change notification settings - Fork 21k
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
Mouse Input under Wayland misses slow movement #88246
Comments
Good catch, that might be it! It looks like for some reason when we receive a motion event we handle them all as ints, converting the Although, and this is very weird, relative motion seems to be (correctly) fractional. You said that this happens when you hold right click, which captures your mouse and thus switches to it, which should not cause the issue you described. I'll switch motion events to |
Yes. This happens during capture. It works fine when say moving an object and other mouse related features. So maybe you have found an unrelated bug there. |
@pracedru I think you're right, the integer thing is unrelated as the "accumulation" is done compositor-side, so even if the thing gets truncated we still get a new pixel position later anyways. Just noticed that while switching to vectors (I'll still push the thing though as it's a correctness fix). A |
Update (sorry for the DP): After some very careful finger slipping, I can replicate this even on my touchpad. It's indeed missing sub-pixel relative motions, which is very weird. I'll investigate further. A |
Bingo! I'm very proud to say that my backend was not the issue 8) Jokes aside, the issue is actually a weird (leftover?) limitation in the way that a very specific part of the input is handled, namely Really weird stuff. I'm setting up a PR as we speak. |
This is great news @Riteo. Keep up the great work!! |
@Riteo |
You might be missing the |
Yeah. How do i get that? I am on Fedora 39. EDIT: ok i found it by installing wayland-devel |
@pracedru great! Thanks for testing and for your patience! <3 |
Apparently this was fixed, why is it still open? |
The PR which purports fixing this hasn't been reviewed/merged yet (see the green "Open" label, it means it's not merged). So the bug isn't fixed yet. |
I'm having a similar issue just trying to use Input.warp_mouse directly with a new slightly different position. Would fixing this allow me to make <1 changes or does it just not make sense to warp_mouse to a subpixel ? |
@mournguard just checked, and it takes a The only annoying part is that it'd require yet another API change from |
Tested versions
System information
Godot v4.3.dev3.mono - Fedora Linux 39 (Workstation Edition) - Wayland - Vulkan (Forward+) - dedicated AMD Radeon RX 6700 XT (RADV NAVI22) () - Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz (8 Threads)
Issue description
Steps to reproduce
Minimal reproduction project (MRP)
No project is needed to reproduce this issue.
The text was updated successfully, but these errors were encountered: