|
-
June 3rd, 2010, 07:55 PM
#8
Re: GetKeyState C++
 Originally Posted by Jameslat
thanks a lot!
now i have run into another problem.
everytime i press my key (a)
it runs the command like 100 times.
How can i make it only run once per evertime a is pressed?
thanks.
You should be handling WM_KEYDOWN or WM_CHAR messages instead of calling GetKeyState in a loop.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|