POSITION:028,114
COLOUR:STANDARD
TEXT:00,You may have played some games that are able to accept data from the
TEXT:16,keyboard without pausing. Actually, they do pause, but only for a tiny
TEXT:16,fraction of time to check the keyboard buffer for a pressed keystroke.
TEXT:16,Because computers can operate at such high speeds, this delay goes
TEXT:16,unnoticed. The next library routine would be of interest to game
TEXT:16,designers:
COLOUR:POINTS
TEXT:32,ri
COLOUR:EUPHORIA
TEXT:00,   = get_key()
COLOUR:STANDARD
TEXT:32,get_key() stores each keystroke waiting in the keyboard buffer into a
TEXT:16,receiving varible. Multiple get_key()s are required to read more than one
TEXT:16,waiting keystroke. If there are no keystrokes waiting, a -1 is returned
TEXT:16,instead. Unlike wait_key(), get_key() does not pause the program.
