Mail Archives: djgpp/1997/04/22/06:36:25
From: | convidat AT upvnet DOT upv DOT es (Usuario Invitado)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: Clear key buffer
|
Date: | 22 Apr 1997 07:32:19 GMT
|
Organization: | UPV
|
Lines: | 20
|
Message-ID: | <5jhpi3$5nf@maia.cc.upv.es>
|
NNTP-Posting-Host: | eui039.eui.upv.es
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
>I suggest to do it the usual way:
>
> #include <conio.h>
> while (kbhit ())
> getch ();
>
>This clears the keyboard buffer, no matter what TSR has taken over
>Int 16h. It might be slower, but how many times per second do you
>need to clear the keyboard buffer, anyway?
The code can't be slow... I'm developing a game, and I need to clear the
buffer every 6/7 times, to avoid those noising beeps...
I can tell you that I've never heared before about a keyboard enhancer... it's
a program?
But thank you anyway, and I've already found the solution twice days ago... if
you want it, i'll post it... I dont have the code right here...
Theuzifan
- Raw text -