|
|
|
io.readkey
If there is any pressed key, the function returns it.
Otherwise it waits until at least one key is pressed and then returns it. If more that one keys are pressed, the extra keys are not lost.
Definition:
to io.readkey while not readkey? [wait 0.1] make local "key first :keybuffer make "keybuffer bf :keybuffer output :key end |
|
|
|