Open Figuera opened 2 years ago
Could you upload your .amgp
profile file containing this assignment?
This is a very strange bug and this is probably somehow linked with your config.
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. EDIT: I am running manjaro sway
@mrhappy200
Could you show screenshot from key checker?
Here it is
EDIT: I am pressing Q
This is me pressing 1
This seems to be sway-only issue.
Tested with ubuntu X11+uinput and ubuntu wayland +uinput and it worked properly.
@pktiuk Anything I could do to help?
I don't think so (unless you are C++ developer).
Due to lack of time and comparably low number of affected users, this issue will have to wait until I will finish ironing out other problems with Windows build
@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 QT_QPA_PLATFORM=xcb
environment variable, to use QT xcb platform.
Correct input (key 1 = "1")
Erroneous input (key 1 = "9")
This is because antimicroX is reading the X11 key code, instead of the Qt one
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.
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 :/
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.
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 :/
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 :)
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