Jump to content
  • Advertisement

Archived

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

Coluna

Getting keys in WIN32

This topic is 5556 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!