SDL and country specific keyboard layouts

Is there a way to tell SDL to correctly map keyboard keys? Currently it returns
SDLK_y when I press ‘z’ on my (German) keyboard, and SDLK_z for a ‘Y’.

karx11erx <karx11erx hotmail.com> writes:

Is there a way to tell SDL to correctly map keyboard keys? Currently it returns
SDLK_y when I press ‘z’ on my (German) keyboard, and SDLK_z for a ‘Y’.

When I enable unicode (SDL_EnableUNICODE (1)), I get the proper values when a
key is pressed, but when the key is released the unicode sent by the event is 0
and only the symbol is set.

SDL 1.2.13 btw.