How to clear Keyboard memory?
Hi I am using GetAsyn开发者_如何学编程cKeyState function in a loop to break loop when clicking Pause. Then again i am starting execution of the same loop. This time before i am hitting Pause key loop was breaked. I want to flush this key in memory .How is it possible?
If I am getting you, pause
is still in keyboard buffer, so you want to remove it?
if(Console.In.Peek() != -1) Console.In.Read();
精彩评论