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

  1. /*
  2.  *    m_light_pen.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.  *    Function to switch the light pen emulation mode on or off.
  12.  *    On by default, after initialization.
  13.  *
  14.  *    0 turns it on, any other value turns it off.
  15.  */
  16.  
  17. void m_light_pen(int on_off)
  18. {
  19.     __Mpar->m1 = (on_off ? 13 : 14);
  20.     mouse(__Mpar);
  21. }
  22.