I have a simple console app written in C#. I want to be able to detect arrow key presses, so I can allow the user to steer. How do I detect keydown/keyup events with a con
System.Console.ReadKey(true).Key == ConsoleKey.UpArrow
You could put that into a spin, something like:
while(Running) { DoStuff(); System.Console.ReadKey(true).Key == ConsoleKey.UpArrow Thread.Sleep(1) }