开发者

How to clear Keyboard memory?

开发者 https://www.devze.com 2023-01-08 02:17 出处:网络
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 beforei am hitting Pause key loop w

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();
0

精彩评论

暂无评论...
验证码 换一张
取 消