[SDL] Shifted keys, i.e. 'a' vs. 'A'

Mike Austin mike_ekim at yahoo.com
Sun Mar 12 21:20:20 PST 2006


I'm writing a user interface in rubysdl, and things have been going along 
pretty smoothly.  I was wondering if there is a way to get the ASCII code of an 
aggregate key event, for example shift+'a' to get 'A'.  I know sdl is more for 
raw input and game development, but is there a way to get this?  I don't want 
to keep track of the shift state if I can help it, because that opens up a new 
can of worms with alphabetic and non-alphabetic shifted values.

Thanks for sdl and rubysdl!
Mike





More information about the SDL mailing list