[DllImport("msvcrt.dll", CallingConvention=CallingConvention.Cdecl)]
static extern int kbhit();
<DllImport("msvcrt.dll", CallingConvention:=CallingConvention.Cdecl)> _
Shared Function kbhit Lib "msvcrt.dll" () As Integer
End Function
None.
None.
Please add some!
// Wait until the user presses a key.
while (!kbhit());
This is in the .NET 2.0 Console class functions System.Console.KeyAvailable() or System.Console.ReadKey().
System.Console.KeyAvailable() - Gets a value indicating whether a key press is available in the input stream. (Nonblocking)
System.Console.ReadKey() - Obtains the next character or function key pressed by the user. Allows for both echoing key to screen or not.