home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_300 / 328_02 / wmsflush.c < prev    next >
C/C++ Source or Header  |  1991-03-26  |  330b  |  19 lines

  1. /* WMSFLUSH.C - flush mouse of keys held down.
  2.  */
  3. #include "wsys.h"
  4.  
  5. #define ANY_PRESS (WMS_LEFT_PRS | WMS_RIGHT_PRS | WMS_CENTER_PRS) 
  6.  
  7. void wmouse_flush (void)
  8.     {
  9.     
  10.     do 
  11.         {
  12.         wmouse.wms_internal =0;
  13.         wmouse_location ();
  14.         }
  15.     while ( 0 != (wmouse.wms_used && ANY_PRESS) );
  16.  
  17.     return;        /* wmouse_flush() */
  18.     }
  19.