[SDL] case sensitive key down?
mrickert85 at yahoo.com
Fri May 21 21:45:58 PDT 2004
--- David White <davidnwhite at optusnet.com.au> wrote:
> > Forget about scan codes, qualifier keys and stuff.
> You'll just get a
> > headache and a non-portable and/or missbehaved
> > In your initialization:
> > SDL_EnableUNICODE(1);
> > and then when you get a keyboard event: (From 'man
> > if(!(event.key.keysym.unicode & 0xff80))
> > ascii = event.key.keysym.unicode;
> > else
> > <deal with international characters>;
> > This method actually *works*, even with weird
> keyboard layouts like my
> > custom swedish Dvorak variant. :-)
> Except that it seems that, at least on Win32, there
> is a problem that SDL
> will take the shift-state at the time that the key
> event is processed,
> rather than what it was when the key was pressed.
This would occur with the non unicode version too I
believe? If not (or even if it does) I think this
would be classified as a bug, the unicode letter state
should be dependant on shift state at keypress.
> David White
> Lead Developer
> Battle for Wesnoth (http://www.wesnoth.org)
> SDL mailing list
> SDL at libsdl.org
Do you Yahoo!?
Yahoo! Domains Claim yours for only $14.70/year
More information about the SDL