Warning
You're browsing the old v2.x documentation. This version is no longer maintained. Click here to go the v3.x documentation.
Differences
This shows you the differences between two versions of the page.
inkey [2019/05/07 14:11] – created neils | inkey [2019/05/07 14:11] (current) – neils | ||
---|---|---|---|
Line 13: | Line 13: | ||
print "press a key" | print "press a key" | ||
loop: | loop: | ||
- | let key! = inkey!() | + | |
- | if key! = 0 then goto loop | + | |
print "you pressed: ", key! | print "you pressed: ", key! | ||
Note that once the keycode was returned by '' | Note that once the keycode was returned by '' |