-
-
Notifications
You must be signed in to change notification settings - Fork 148
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
Wrong Keyboard Input on Assignment (Wayland) #300
Comments
Could you upload your |
I haven't done much yet but here is my config: https://pastebin.com/raw/3vGdCcz0 and one of the control mappings: |
I have the same problem, with me it always seems to register 8 values further, so if I press 1 it registers 9 and if I press Q it registers O. in the key checker the qt value is correct but the antimicroX value is 8 further. |
@mrhappy200 |
This seems to be sway-only issue. |
@pktiuk Anything I could do to help? |
I don't think so (unless you are C++ developer). |
@pktiuk I might have an idea, what if you just put the gui key picker into the advanced settings. This would solve most problems and I would imagine (I wouldn't know not a c++ dev) that is is mostly just copy paste. |
This behaviour appears when running on Wayland, because it has different key codes to X11. It is also an issue on GNOME. @pktiuk This should not be labeled low-priority now, because wayland backend is enabled by default, but AntiMicroX doesn't properly support wayland. uinput lib only handles event generating. Capturing the keypress is handled by the QT backend. |
A temporary workaround is to set |
You are right, this issue occurs on all of the wayland compositors. Unluckily I have no idea, what is going on in the part of the code dedicated to these key codes. TBH I don't know why do we have these three types of key values (lack of code docs does not help), so fixing this issue may be problematic for me :/ |
I am also seeing this in Wayland when trying to assign the numpad keys. Instead of the Numpad keys being assigned it seems I'm getting F keys (Numpad 1 = F11) or functions (insert/delete/etc) but not the non-numlocked variety, but the 6 dedicated keys. This seems to be my last hurdle with trying to use Wayland over X11. |
The AntiMicroX code is probably for cross-platform functionality, so each key has a common code. But the code is converting from the native keycode instead of the abstracted Qt keycode. |
Feel free to investigate the code and fix this issue. PR-s are welcome :) |
Hello guys, I had some time to look t this problem once again, and I think I found a fix @Figuera @mrhappy200 @rporter220 @tutacat Test build is available here: https://github.com/pktiuk/antimicrox/releases/tag/fix_wayland_keyboard_assignment Could you test is and tell me whether it fixes this issue (without creating any new bugs)? |
So far the appimage works great for me. I've only tested it for about 30 minutes, using an xinput gamepad to press CTRL+Z for undo in Krita, but it's working. I was using the current antimicrox build found in the arch linux repo and running it on plasma + wayland when I ran into the issue described above. I'll test this build some more tonight and if anything comes up I'll let you know. Thank you for the test build! |
I have just build version 3.5.0. on a Raspberry Pi 4 (Raspberry Pi OS "bookworm") and also have experienced this issue. When registering keypresses, the codes are shifted by a value of 9. Picking the correct values from the virtual keyboard leads to a working configuration though. This means I cannot press the wanted buttons to select a value but have to choose them visually. So maybe this is half solved? |
@oe4dns Does it also happen in x86 environments? |
Steps for Reproduction:
I have tested this on a x86 system and everything works as expected, no issues. BUT I do not yet run Wayland on any of my x86 boxes, everything ist still X11. So this is more likely a Wayland issue and not connected to the hardware architecture. |
Is there an existing issue for this?
Current Behavior
On pressing a keyboard key to assign a mapping using the Advance Option the wrong key is assigned.
When creating a mapping I press "A" and "(" is assigned.
Expected Behavior
I press "A" and "A" is assigned.
Steps To Reproduce
1 - Click on a Random Gamepad key
2 - Select a key to assign
3 - Click on Advanced Button
4 - Click on Extra Assignment
5 - Press Keyboard Key
Environment
Anything else?
I... am confused about this one. It is not something that would go by unnoticed so it have to be something particular to my machine. At first I thought it was my keyboard layout which is non-standard, so I changed it to the US layout but problem persisted. I try installing a different version of AntiMicroX but it didn't help.
So maybe it is something particular to Sway/Wayland.
I did searched for a similar issue but couldn't find, if there is please merge us and ignore me.
Upvote & Fund
The text was updated successfully, but these errors were encountered: