开发者

Get Console Key in C# without halting the Console?

开发者 https://www.devze.com 2023-03-24 12:48 出处:网络
I am making a Virtual Machine and I just ran into a BIG problem. I need to get a scan code value of what ever key is pressed at runtime , WITHOUT ha开发者_StackOverflow中文版lting the consoleI assume

I am making a Virtual Machine and I just ran into a BIG problem. I need to get a scan code value of what ever key is pressed at runtime , WITHOUT ha开发者_StackOverflow中文版lting the console


I assume you are using Console.ReadKey()? I believe what you're looking for is Console.KeyAvailable

0

精彩评论

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