[SDL] Keyboard maps.
Greg Velichansky
hmaon at bumba.net
Mon Mar 19 13:27:13 PST 2001
> Bother! said Pooh joining AOLers. 1"M NOW TYP1NG KEWL STUFF//!!!
This tagline must have been written by someone with a keyboard layout
other than a US one where the '!' is a shifted '/' whereas it's '?' on a
US keyboard.
My current problem with SDL is that I need to translate keystrokes from
the base enumeration and the modifier key states (esp. shift) into
keyboard characters which vary depending on keyboard layout.
I'm hoping that there's an easy way to get the character that someone
intended when they pressed Shift-something and I just overlooked it in the
docs.
Otherwise I'll have to write my own code to do this (I already have it,
technically but it's hardcoded for a US layout), possibly borrowing
Linux's key map definitions.
Has anyone done something similar already, perhaps?
Greg V. (hmaon)
"It's today!" said Piglet.
"My favorite day," said Pooh.
More information about the SDL
mailing list