Difference between revisions of "Key.get"
Jump to navigation
Jump to search
(Created page with "<c>key.get</c> removes and returns the next key in the keyboard input buffer. If the input buffer is currently clear (empty), then this method waits until a key is pressed....") |
|||
Line 2: | Line 2: | ||
a key is pressed. Note that modifier keys (shift, alt, etc.) pressed alone do not go into the input buffer. | a key is pressed. Note that modifier keys (shift, alt, etc.) pressed alone do not go into the input buffer. | ||
− | [[key.available]] | + | See also: [[key.available]] |
== Example == | == Example == |
Revision as of 00:27, 24 March 2020
key.get
removes and returns the next key in the keyboard input buffer. If the input buffer is currently clear (empty), then this method waits until
a key is pressed. Note that modifier keys (shift, alt, etc.) pressed alone do not go into the input buffer.
See also: key.available
Example
print "You pressed: " + key.get