Re: keyboard input using getc(0)

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

Asa wrote:
> 
>  Hi all, I am finding that after using an expression like "choice = getc(0)"
>  the next time getc(0) is called, it doesn't wait for the keystroke. Something
> 
> left in the keyboard buffer from the first call? 
> 
>  I did search the docs before posting, but couldn't find an answer. 
> 

getc() will return multiple codes for special keys. wait_key will translate
those for you.

--
Jeremy Cowgar
http://jeremy.cowgar.com

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

Search



Quick Links

User menu

Not signed in.

Misc Menu