(Nov-15-2020, 11:41 PM)bowlofred Wrote: Put your check (the GetAsyncKeyState call) into the loop as well. Make sure it has an else clause to set it back to 1 when the key is up.
Thank you for answer.
The "real" code is a bit more complex so would be great if was possible to do it without another check inside the loop