• Advertisement
Sign in to follow this  

GetAsyncKeyState and GetKeyboardState

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