I use the WM_KEYDOWN message(by checking wParam for a specific key of course) in my application to start an animation and use the WM_KEYUP message to tell when the key is released and stop the animation.
But Windows have that autorepeat feature and when the key is preesed continuously many WM_KEYDOWN messages are received before an KEYUP message resulting my animation start again and again.
How can I get rid of this?
Thanks for help in advance!