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.

Link to this comparison view

inkey [2019/05/07 14:11] – created neilsinkey [2019/05/07 14:11] (current) neils
Line 13: Line 13:
  print "press a key"  print "press a key"
  loop:  loop:
- let key! = inkey!() +   let key! = inkey!() 
- if key! = 0 then goto loop+   if key! = 0 then goto loop
  print "you pressed: ", key!  print "you pressed: ", key!
   
 Note that once the keycode was returned by ''INKEY()'', the input is "consumed", i.e. it won't be returned again on a subsequent function call, even if the key remained pressed. Note that once the keycode was returned by ''INKEY()'', the input is "consumed", i.e. it won't be returned again on a subsequent function call, even if the key remained pressed.