I'm trying to use my laptop keyboard's right alt and control keys, but games don't recognize their keypresses at all.
I even tried remapping them to other, recognized keys with xkb, and the remapping is recognized when I check with xev, but games still don't register the keys at all.
I'm very stuck here, does anyone have any idea what I might be able to do here?
https://wiki.archlinux.org/index.php/Ke … on_in_Xorg may be useful
Thanks, but not so much... I've been reading that article and trying to figure it out, but no luck so far.
I tried swapping the keys out with both xmodmap and xkbset, even when xev shows that "alt" and "control" are mapped to "F11" and "F12", the games still won't accept those keys. Even if I straight up tell the game that the "shoot" button is "F11", it won't work if F11 is mapped to "Control".
Sorry if that's confusing. Is it possible that the game is reading the keycode itself? Any ideas?
There are games that bypass X and do their own keyboard handling.
Often they refuse to accept modifier keys ( CTRL , ALT, Meta (often has a windows symbol on it) as input as those tend to be handled at low level, very close the hardware.
Well-behaving userland programs are not supposed to change things at low level.
It's weird because it recognizes all of the Fn/Ctrl/Windows/Alt keys on the left side, but Ctrl/Alt on the RIGHT side are the only ones not recognized.
I had the same problem with a different game, but remapping those keys to other ones worked.
Is your right ALT key labeled ALT Gr ?
Which games have you tried/tested? We can than check if those games are bad/bugged in this way, or if something else is wrong with your system.
I have been diagnosed with Bipolar Disorder. Therefore, I apologize in advance if the quality/content of my posts decline sharply, at any point.
It's just labelled "Alt", nothing special. The game in question is actually a free game in the AUR, tome4: https://aur.archlinux.org/packages/tome4/
If anyone feels like testing out if you can remap keys using the right alt/ctrl buttons, feel free. Plus it's a pretty good game if like RPGs.