KeyboardLayouts in SDL

Hi, I have been fiddelign awhile now with my keyboard handler
i used the ways that was suggested and they worked kinda nice.

I was wondering if there is Anyway to change Keyboard Layout
from English to Swedish or any other country.
So that SDL_SymToASCII(); returns the correct ASCII value

IF there is any way how should it be done and what Countrys
are supported?

thanx /andreas

Hi, I have been fiddelign awhile now with my keyboard handler
i used the ways that was suggested and they worked kinda nice.

I was wondering if there is Anyway to change Keyboard Layout
from English to Swedish or any other country.
So that SDL_SymToASCII(); returns the correct ASCII value

Currently the latest SDL snapshot has support for German and French
keyboards under X11, since those are the keyboards I have available.
Adding another keyboard is about a 3-hour process, and can be done by
adding the proper syms to SDL_keysym.h, SDL_sysevents.c, and SDL_keyboard.c

Does anybody know how this is done under Win32, and/or BeOS/MacOS?

Eventually the “right” way is probably to go to some sort of UNICODE
translation, but that is way more work than I have time to do correctly
right now.

-Sam Lantinga				(slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
Author of Simple DirectMedia Layer -
http://www.devolution.com/~slouken/SDL/