Key.available
Revision as of 23:47, 23 March 2020 by 71.226.33.30 (talk) (Created page with "<c>key.available</c> returns whether there is a keypress available in the input buffer. If true, you can call key.get to get the next key immediately. See also:key.clear; key...")
key.available
returns whether there is a keypress available in the input buffer. If true, you can call key.get to get the next key immediately.
See also:key.clear; key.get
Usage Notes
key.availlable
Note that does not detect modifier keys (shift, alt, etc.).
Example
while not key.available; end while // waits until some key is pressed