home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c100 / 1.ddi / MOUSE.ZIP / M_RELEAS.C < prev    next >
Encoding:
C/C++ Source or Header  |  1990-07-11  |  580 b   |  25 lines

  1. /*
  2.  *    m_release.c
  3.  *
  4.  *    Public Domain (p) March 1990 By Rodney Loos
  5.  *    Syntax modified by S. Sampson
  6.  */
  7.  
  8. #include "mouse.h"
  9.  
  10. /* Get button release */
  11.  
  12. M_POS *m_release(int button)
  13. {
  14.     __Mpar->m1 = 6;
  15.     __Mpar->m2 = button;    /* 0 = left, 1 = right, 2 = center */
  16.     mouse(__Mpar);
  17.  
  18.     __Mptr->buttons = __Mpar->m1;    /* status of button now */
  19.     __Mptr->count   = __Mpar->m2;    /* number of button releases */
  20.     __Mptr->curx    = __Mpar->m3;    /* horizontal pos. of last release */
  21.     __Mptr->cury    = __Mpar->m4;    /* vertical pos. of last release */
  22.  
  23.     return (__Mptr);
  24. }
  25.