Difference between revisions of "Key.available"
Jump to navigation
Jump to search
(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...") |
m |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <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. | + | <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.get | + | See also: [[key.clear]]; [[key.get]] |
=== Usage Notes === | === Usage Notes === | ||
− | <c>key. | + | <c>key.available</c> does not detect modifier keys (shift, alt, etc.). |
== Example == | == Example == | ||
Line 9: | Line 9: | ||
<ms>while not key.available; end while // waits until some key is pressed</ms> | <ms>while not key.available; end while // waits until some key is pressed</ms> | ||
− | [[Category: | + | [[Category:Mini Micro]] |