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?

asked Dec 30, 2019 in Engine by JTE (24 points)

1 Answer

0 votes

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


answered Dec 30, 2019 by JTE (24 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 How to use this Q&A? before posting your first questions.