Jump to content
  • Advertisement


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


Problem w/ GetAsyncKeyState() and VK_x

This topic is 6165 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

Ok, I know there are many of you out there who can answer this, so if you would mind throwin down the answer, it''d be a great help... I am trying to do some stuff w/ GetAsyncKeyState(), but VK_0-9 and VK_A-Z aren''t working. Now, I know I could use WM_CHAR or KEYDOWN through WinProc(), but for one thing, I don''t want to go through windows, and for another thing, WM_KEYx messages are no good for multiple key presses. I looked up the virtual key codes on MSDN and it says VK_A-Z and VK_0-9 exist. I also tried the numbers next to them (for example, instead of VK_P you would use the constant 50), and that compiled, but it didn''t work. How do I use 0-9 and A-Z in GetAsyn...()???? Thanks... Misterags™

Share this post

Link to post
Share on other sites

  • 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!