Key.available

From MiniScript Wiki
Revision as of 13:10, 26 April 2020 by JoeStrout (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.available does not detect modifier keys (shift, alt, etc.).

Example

while not key.available; end while  // waits until some key is pressed