0 votes

I want to make a classic-style game which uses arrow keys for directional movement and Z, X for the "A button" and "B button".

The problem is, I have friends who use QWERTZ keyboards, so the Z key is suddenly two rows away from where I expect it to be on my QWERTY keyboard. I thought the point of scancodes was that they don't change with the keyboard layout?? Is the engine using keycodes instead and just calling them scancodes?

Normally this would be "solved" by adding a keyboard configuration screen to allow players to remap the input themselves individually, but I still want to have a good "default" layout. Is that even possible? How would I determine the physical keyboard layout in GDscript in order to remap the inputs to be appropriate?

in Engine by (25 points)

1 Answer

0 votes

Ah. I see this is already a pull request. https://github.com/godotengine/godot/pull/18020


by (25 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.