I recently came across an interesting issue with how we handle hotkey mapping under international keyboard layouts, as was wondering if others have encountered a similar issue and how they dealt with it.
Right now we use some common hotkey groupings as defaults in our game (WASD, QWERTY, etc.). However we noticed that if the user changes their active keyboard layout to something else, like Turkish, these defaults no longer work that well because we map from virtual keys, and these virtual keys are only physically grouped together on a handful of keyboard layouts (U.S. in our case).
The user can always remap their keys, but I'm hoping to come up with some sort of solution to automatically map the default virtual key assignments from the assumed U.S. keyboard layout to the active keyboard layout, at the very least to preserve the usefulness of the defaults for as many players as possible. However the more I look into it, the less feasible it seems.
Does anyone have any experience with this issue? Did you find a solution/workaround, or did you just accept that your default keyboard bindings might suck for some international users and have them re-bind their keys?