Apex-Macros icon indicating copy to clipboard operation
Apex-Macros copied to clipboard

1202[RAW] does not map keys correctly in hwdb

Open cyberlink1 opened this issue 2 years ago • 2 comments

ok my keyboard is a 1202 and ID's as [RAW]

I noticed that the keycodes in the hwdb file do not map out to the keys. For example

KEYBOARD_KEY_0700f5=f14

Which should be keycode 184 is returning keycode 192 via xev.

Im wondering where the KEYBOARD_KEY_0700XX entries came from and if they are right for this keyboard.

xev output KeyPress event, serial 37, synthetic NO, window 0x5800001, root 0x1e9, subw 0x0, time 59901710, (262,1048), root:(4152,1135), state 0x0, keycode 192 (keysym 0x1008ff45, XF86Launch5), same_screen YES, XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: False

cyberlink1 avatar Mar 02 '22 14:03 cyberlink1

I did not test the codes with a Apex Raw as I did not had one, the codes are from somewhere online. In case there are any errors, I'm open for corrections. Feel free to open a PR or tell me what's wrong, then I'll correct it.

Gibtnix avatar Mar 02 '22 16:03 Gibtnix

This turns out to be a lot more complicated than I expected.

Showkey gives the correct scancode where xev gives a different scan code.

Best I can gather so far is that Wayland/X11 is sitting in the middle and doing a translation which is screwing it up.

The upshot is that the hwdb is correct, but X11 is changing it. It kind of blows my idea of using the extra keys in a game. lol

cyberlink1 avatar Mar 02 '22 16:03 cyberlink1