Re: putitng info from keyboard
- Posted by ghaberek (admin) Feb 17, 2009
- 952 views
Andy said...
Another easy example would be.
code
This will end the program when you press ESC. Check the key.bat for list of keycodes.
That won't do anything since it only calls get_key() once.
include get.e constant ESC = 27 integer key while 1 do key = get_key() -- moved inside the loop if key = ESC then exit end if end while
That's better.
-Greg