Syntax
unsigned int kbhit(void);
Parameters
None
Return value
Returns true if a key has been pressed.
Value | Description |
---|---|
TRUE | The Key is pressesed. |
FALSE | The key is not pressed. |
Remarks
Use the Idle function when kbhit() is used to wait for keyboard input.
When a user wants to wait for a key press, it is advised to call ResetKey function first, in order to be sure that a previous key, still in the keyboard buffer, doesn't cause kbhit() to return with TRUE.
Please note that the Shift key and Power key cannot be judged for pressing.
When a user wants to wait for a key press, it is advised to call ResetKey function first, in order to be sure that a previous key, still in the keyboard buffer, doesn't cause kbhit() to return with TRUE.
Please note that the Shift key and Power key cannot be judged for pressing.
Requirements
Header file:
lib.hLibrary file:
libSTARTUPOPH5000.a
Last updated: 2020/10/01