home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_300
/
328_01
/
wflush.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1991-03-15
|
357 b
|
30 lines
/* wflush ()
*
* this routine flushes the keyboard/mouse
*/
#include "wsys.h"
void wflush (void)
{
if (wpipein)
{
/* redirection is in effect - don't flush
*/
return;
}
while ( wready_kbd() )
{
wread_kbd();
}
wmouse_location();
wmouse.wms_used = wmouse.wms_internal= 0;
return; /*wflush*/
}