Home |
RTKernel-32 Programming Manual Function KBGetCh |
Function KBGetChKBGetCh waits for and retrieves keyboard input: int KBGetCh(void); As long as no keyboard input is available, the calling task is blocked. The return value is the ASCII value of the key pressed. If the key was an extended key without an associated ASCII value, 0 is returned and a second call to KBGetCh retrieves the key's keyboard scan code. KBGetCh corresponds to the getch function supplied by most C/C++ compilers. However, getch, reading from stdin, and all Win32 console input functions can also be used for keyboard input.
|