Grunt
Grunt

Reputation: 173

Get Console Key in C# without halting the Console?

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 halting the console

Upvotes: 1

Views: 1662

Answers (1)

w.brian
w.brian

Reputation: 17387

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

Upvotes: 3

Related Questions