Gregor Lingl wrote:
I'm using pygame on a computer with a German keyboard on a Windows machine. On this keyboard y and z keys are exchanged for example. Now - on my machin - event.key == K.z gets True if I pressed the y key and vice versa. How can I overcome this? (I know that this problem doesn't occur atleast on some Linux Boxes.)
It looks like on Linux that SDL wants "kbd_lang=de". I don't know if setting this environment variable will help on windows?
It sounds like SDL's international keyboard support is poor. You can also check event.unicode to get a unicode string of the letter pressed. This will likely be the correct letter, but it is also effects by things like shift, capslock, and other modifiers.