In my program, this is what happens. It appears as if there are a ton of WM_KEYDOWN messages being racked up in the message queue, so when you finally let off the key, all the WM_KEYDOWN messages are being fired off, but you really want them to stop since you let off the key.
I could see the problem being fixed by:
a) clearing the message queue after dispatching each one
b) using some sort of a timer to limit the amount of messages (???)
c) somehow dont let the messages get stacked up in the queue, but have to wait until its empty.
I'm new to windows programming, so don't really have an idea on how to do the above. Any help would be appreciated, thanks.