Re: putitng info from keyboard

new topic     » goto parent     » topic index » view thread      » older message » newer message

Another easy example would be.

include get.e 
 
constant ESC = 27 
 
integer key 
key = get_key() 
 
while 1 do 
 if key = ESC then 
      exit 
 end if 
end while 

This will end the program when you press ESC. Check the key.bat for list of keycodes.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu