Appendix A: System Routines — Keyboard
641
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
kbhit
Declaration:
WORD
kbhit
(void)
Category(ies):
Keyboard
Description:
Returns TRUE if there is a key pending in the key queue.
Inputs:
None
Outputs:
TRUE if a key is pending in the key queue.
Assumptions:
None
Side Effects:
None
Availability:
All versions of the TI-89 / TI-92 Plus.
TI-89 / TI-92 Plus
Differences:
None
See Also:
None
Example:
while ( !kbhit () ); /* wait for a keypress */
return ( ngetchx ( ) ); /* return the key */