GetAsyncKeyState and GetKeyboardState
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
See the MSDN documentation on both functions for details:
GetKeyboardState
GetAsyncKeyState
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement