[SDL] Non US keymapping problems with DirectInput (solution?)
slouken at devolution.com
Sat Jul 26 12:46:02 PDT 2003
> Ok, it's a well known problem that SDL using DirectInput doesn't always
> give the correct key codes for the actual keys being pressed when using a
> non US keyboard.
> After examining the problem, I have to ask why can't MapVirtualKey() be
> used to convert the scancode from DirectInput for the key pressed into a
> Virtual Key code that is correct for the keyboard being used.
> In the a fairly limited test, using MapVirtualKey to translate the scancode
> to a virtual key worked fine.
The virtual key is used for filling in the unicode member of the keysym
when unicode translation is enabled. What were you proposing it be used
-Sam Lantinga, Software Engineer, Blizzard Entertainment
More information about the SDL