Found my problem! Its the key press!
I want it that when the key is pressed not when the key is down :S
Therefore I want it to happen once. I think I can either put sleep(not recommanded) Or remove the &1? Hmm
Found my problem! Its the key press!
I want it that when the key is pressed not when the key is down :S
Therefore I want it to happen once. I think I can either put sleep(not recommanded) Or remove the &1? Hmm
Hmm my problem remains :/ I dont want to use sleep because there are more hacks running on the same thread. You think I should start a separate thread for detecting keystrokes? Thanks
When you say
if(GetAsyncKeyState(VK_NUMPAD8)&1)
What is the &1 representing?
Edit: If im not mistaken the GetAsyncKeyState returns a value if a button is up or down.
Hmm
Last edited by Skatebone1; 11-09-2010 at 09:19 AM.
Skatebone1 (11-09-2010)