Jump to content
  • Advertisement
Sign in to follow this  
3dcgmodeling

GetAsyncKeyState and GetKeyboardState

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

Advertisement
You should probably use GetAsyncKeyState. GetKeyboardState will return different results based on how many Windows messages you have processed in your message pump, so it will change over time; what it returns is not necessarily the keys that are pressed right now. For that, you need to call GetAsyncKeyState.

See the MSDN documentation on both functions for details:
GetKeyboardState
GetAsyncKeyState

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!