You are not logged in.

#1 2017-03-16 22:55:04

stabwound
Member
Registered: 2015-07-24
Posts: 37

Games won't recognize Right Alt / Control keys, even when remapped

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?

Offline

#2 2017-03-17 11:28:48

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 5,566

Re: Games won't recognize Right Alt / Control keys, even when remapped


Booting with apg Openrc, NOT systemd.
Automounting : not needed, i prefer pmount
Aur helpers : makepkg + my own local repo === rarely need them

Offline

#3 2017-03-17 23:53:39

stabwound
Member
Registered: 2015-07-24
Posts: 37

Re: Games won't recognize Right Alt / Control keys, even when remapped

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?

Offline

#4 2017-03-18 14:15:33

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 5,566

Re: Games won't recognize Right Alt / Control keys, even when remapped

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.


Booting with apg Openrc, NOT systemd.
Automounting : not needed, i prefer pmount
Aur helpers : makepkg + my own local repo === rarely need them

Offline

#5 2017-03-19 19:51:50

stabwound
Member
Registered: 2015-07-24
Posts: 37

Re: Games won't recognize Right Alt / Control keys, even when remapped

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.

Offline

#6 2017-03-20 11:41:33

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 5,566

Re: Games won't recognize Right Alt / Control keys, even when remapped

Is your right ALT key labeled ALT Gr ?


Booting with apg Openrc, NOT systemd.
Automounting : not needed, i prefer pmount
Aur helpers : makepkg + my own local repo === rarely need them

Offline

#7 2017-03-20 16:01:28

JohnBobSmith
Member
From: Canada
Registered: 2014-11-29
Posts: 741

Re: Games won't recognize Right Alt / Control keys, even when remapped

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.

Offline

#8 2017-03-20 19:35:54

stabwound
Member
Registered: 2015-07-24
Posts: 37

Re: Games won't recognize Right Alt / Control keys, even when remapped

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.

Offline

Board footer

Powered by FluxBB