开发者

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜