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

  1. /*
  2.  *    m_speed.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. /*
  11.  *    Set the threshold speed for doubling the cursor's
  12.  *    movements
  13.  */
  14.  
  15. void m_speed(int x)
  16. {
  17.     __Mpar->m1 = 19;
  18.     __Mpar->m4 = x;        /* speed threshold */
  19.     mouse(__Mpar);
  20. }
  21.