[SDL] Modifiers: how to?

Sam Lantinga slouken at devolution.com
Tue Nov 30 07:41:00 PST 2004



> > They were overlooked.  When I wrote the list of keysyms I didn't have a polish
> > keyboard handy. :)

> Just to clear things up: actually polish keyboards aren't really different from standard english ones, typing ±,ê,æ etc. is accomplished by pressing a, e, c etc. and right alt, you just have to change OS settings.

> Also, I thought that % is available on all types of standard 103 keyboards, not only polish ones *shrugs* ;-)

Yes, but only as shift-5 (see below)

>  
> > I recently wrote the international keyboard handling for World of Warcraft,
> > and I finally figured out how to do it right, so SDL 1.3 is going to have a
> > completely revamped set of keysyms, which will include the lower ASCII set
> > unchanged, as keys on the keyboard.

> Well, that's great!

Well, yes, but that won't solve your problem.  The SDL keysyms only correspond
to unmodified keys on the keyboard.  For example, the French keyboard
doesn't actually have number keys. :)  To get '1' on a French keyboard, you
have to press shift and another key (I forget which), so you'll never get a
keyboard event with SDLK_1 in it on a French keyboard.  If you enable UNICODE
translation though, you'll get an event with '1' in the unicode field when the
appropriate key combination is pressed.

See ya,
	-Sam Lantinga, Software Engineer, Blizzard Entertainment




More information about the SDL mailing list