Re: keyboard input using getc(0)
- Posted by Jeremy Cowgar <jeremy at c?wgar.c?m> May 16, 2008
- 726 views
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