-
Notifications
You must be signed in to change notification settings - Fork 101
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
Respect existing keymap #281
Comments
Hi, in general, we use scan codes for in-game inputs to allow people with nonstandard layouts to play the game without having to remap their buttons. For games this is often preferred behavior because the position of the keys matters more than what is on the keys. If people don’t like this, in most cases they can still remap their controls. Escape is of course a problem, because it cannot be remapped. Maybe we should introduce an explicit mapping for the ingame menu key, too? and make mappings to the escape key possible? I cannot reproduce the player input issue. For me the name input is in my system-wide nonquerty keyboard layout set via setxkbmap. Are you perhaps using something more complicated like ibus? |
I don't understand the issue here... if you've swapped escape with capslock, and you expect the game to respect the keyboard layout, then wouldn't you also expect it to interpret escape as capslock and vice versa? Please elaborate.
We use SDL's text input API for that ( |
Indeed, reinstalling SDL fixed issue with the layout. I have
Current taisei behavior:
Desired taisei behavior:
Introduction of an explicit mapping for the in-game menu key is nice idea. As well as being able to remap it in controller settings. |
Ah I see now, that makes sense. We discussed this on discord a bit. Probably the cleanest way to fix it is to check for Escape and Return by keysym - these keys are "special" in that you want to press them by meaning and not by position. This approach might cause minor problems in some very contrived cases; e.g. if you've mapped escape to left shift or something, you'll have to change the default controls in order to play. I don't think we can account for every silly edge case like this though. Overall it seems like the right thing to do. |
It would be nice if game respected existing keyboard mappings.
I have caps lock and escape keys switched with
setxkbmap
, so every time I press escape in game caps lock is toggled, which is very annoying. Also in order to change player name I have to use qwerty, which is not my preferred (and system-wide) layout.The text was updated successfully, but these errors were encountered: