Keyboard layout

Hello.
Is it any way to support native keyboard layout in SDL?
I mean - if somebody have not QWERTY but QWERTZ - after pressing his “Z” SDL
probably catch SDLK_Y key.
I don’t know how and where that layout type should be set, I am just asking -
is it possible in SDL? If no - what can be good way to convert “SDLK_Y” to "Y"
or “Z” (using current layout) ?

PS. it isn’t important in games, but it can be important in emulator–
I love the night So many shadows
Unholy light
Secrets of the heart Leave 'em in the dark "Lord of the Last Day"
Forever - Ronnie James Dio

Hello.
Is it any way to support native keyboard layout in SDL?
I mean - if somebody have not QWERTY but QWERTZ - after pressing his “Z” SDL
probably catch SDLK_Y key.
I don’t know how and where that layout type should be set, I am just asking -
is it possible in SDL? If no - what can be good way to convert “SDLK_Y” to “Y”
or “Z” (using current layout) ?

PS. it isn’t important in games, but it can be important in emulator

If you need actual character codes, as opposed to using the keyboard as
a giant gamepad, then turn on UNICODE translation with SDL_EnableUNICODE()
and then look at the ‘unicode’ field of the key down event.

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment

Sam Lantinga wrote:

If you need actual character codes, as opposed to using the keyboard as
a giant gamepad, then turn on UNICODE translation with SDL_EnableUNICODE()
and then look at the ‘unicode’ field of the key down event.

Hah. For 1.3, one of the major changes will be fixing the spelling,
from “UNICODE” to “Unicode” :slight_smile: