This topic is now archived and is closed to further replies.


Getting keys in WIN32

Recommended Posts

Hi again. I''m programming in windows, and i wanna get the pressed key by the user, and prnt them with my opengl font.print function. But how can i take the correct key ( for example, shift+1 = 1) pressed within the "case WM_KEYDOWN: " statement? I''m texting if the shift key is being pressed, then i use toupper()function for letters...and for numbers? is there as easy way or i should do the conversion number by number? (sorry about my poor english :-)

Share this post

Link to post
Share on other sites