Mail Archives: djgpp/2002/01/23/04:03:13
A few postings ago, Eli told me to use kbhit() to
check if the keyboard was hit ('cause the interrupt
generated by CTRL-C didn't do the right thing).
I inserted this in my code, and now I can indeed quit
my program correctly.
While testing my program, I found out the program
didn't work...
Now I have found the error: If i call kbhit() and
check if a key has been hit, the program freezes until
a key has been hit!
Can anyone tell me if there is a way to check if a key
has been pressed once in a while (say every 10 sec's)
and if not, then just go on executing the code???
Roland
__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/
- Raw text -