3 ms·
Every small indie game ever: action buttons are x and z. Guess what, y and z are swapped on a German keyboard.
by WA 4y ago
Every small indie game ever: action buttons are x and z.
Guess what, y and z are swapped on a German keyboard.
- amadeuspagel 4y agoThat's an illustration that the problem is not so easy. What your parent comment complains about is that the keyboard shortcut is based on the location of the key, and not the letter. What you complain about is that the keyboard shortcut is based on the letter, and not the location. Obviously, these complaints don't contradict each other, both make sense in different circumstances. But figuring that out requires awareness of different keyboard layouts, and of the difference between KeyboardEvent.code (location) and KeyboardEvent.key (letter).
- runarberg 4y agoGive the actions appropriate names and allow users to remap them. Have a few common layouts you can select from. Allow users to select a language and locale (separately) when they first launch. Refer to the actions not the keys in the documentation, and when you do specify key (e.g. in parenthesis) have it dynamically reflect the current setup. Seem rather straight forward.
- wazoox 4y agoAnd W and Z, and Q and A on French keyboard. WASD is totally unusable, and unfortunately quite common in web apps for instance.
- poulpy123 4y agoI would say it's more a problem of the underlying système (game engine or os) that should manage the compatibility between keyboard layout