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

  1. /* wbuttont.c
  2.  *    CONTAINS wbutton_test ()
  3.  *
  4.  *    tests a keystroke (which may be a mouse)
  5.  *    returns same if keystrke is an active button
  6.  *    returns 0 if not a button.
  7.  *
  8.  *
  9.  */
  10. #include "wsys.h"
  11.  
  12. int wbutton_test ( int uval )
  13.     {
  14.     WBUTTON *Bptr;
  15.  
  16.     Bptr = wbutton_getptr ( uval );
  17.  
  18.     uval = Bptr ?  Bptr-> Bval  :  0;
  19.  
  20.     return (uval);        /* wbutton_test */
  21.     }
  22.  
  23.