[SDL] ctrl + w == unicode 23?
Ryan C. Gordon
icculus at clutteredmind.org
Sun Dec 1 16:48:01 PST 2002
> For those who may not know, ctrl-A through ctrl-Z map to ASCII
> characters 1 through 26, in the obvious pattern. ctrl-[ through ctrl-_
> continue the pattern for characters 27 through 31. ASCII character 0,
> also known as NUL, is represented as ctrl-@ (or sometimes ctrl-space).
Oh, duh, I guess that makes sense. Just didn't expect X11 to consider
them as ASCII 1 through 26...that seems so...DOS. :)
As a "gotcha" for SDL/X11 coders, though, be aware that your keydown event
for the letter key will have a different unicode value than your keyup if
you release the CTRL key before the letter key.
More information about the SDL