[SDL] Keys & Impressed
Patricia Curtis
patricia.curtis at gmail.com
Sat Mar 24 11:50:25 PDT 2007
Hi Guys
Just thought i would say i am impressed again with the thought
that's gone into SDL, as i am mucking about with keys etc and i have just
noticed that you have mapped the keys to ASCII (nice) also the KMOD defines
for SDL_GetModState also very handy.
looking at the SDLK definitions, thinking that i would be able to pull the
ASCII from the key press, its all good except i am only getting the lower
case key and none of the shift +_}{ etc.. so i am assuming that i must use
SDL_GetModState no problem but once i have determined its the shift or caps
has been pressed, how can i translate the ASCII to the Shifted version?
MyASCII = event.key.keysym.sym; // this does not work for uppercase and {}
etc
Thanks again.
Trish
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20070325/787f7d0c/attachment.htm
More information about the SDL
mailing list