home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a054 / 1.img / GETLIB.EXE / MOUSE.CH < prev    next >
Encoding:
Text File  |  1990-12-16  |  1.4 KB  |  44 lines

  1. /***
  2. * mouse.ch
  3. *
  4. * Constants for use with the mouse interface
  5. *
  6. * Program 9-10, page 474
  7. */
  8.  
  9. // Commands ...
  10.  
  11. #define M_RESET       0   // Reset mouse driver and return
  12.                           // status
  13.                           // AX has status, -1 if hardware and software
  14.                           // installed, 0 if not installed.  BX has
  15.                           // number of buttons
  16.  
  17. #define M_SHOW        1   // Make mouse cursor visible
  18.  
  19. #define M_REMOVE      2   // Hide mouse cursor
  20.  
  21. #define M_READ        3   // Get button status and mouse position
  22.                           // BX has button status, bit 0 left button,
  23.                           // bit 1 right button.  bits are 0 if
  24.                           // corresponding button up, 1 if down
  25.  
  26. #define M_SET_CURS    4   // Set cursor position.
  27.  
  28. #define M_MOTION     11   // return horizontal and vertical movement
  29.                           // since last call to this function.
  30.  
  31. // 2 constants use to translate between mickeys and text mode
  32.  
  33. #define M_CURS_WIDTH  8   // number of 'mickeys' horizontally
  34.                           // per text character
  35.  
  36. #define M_CURS_HEIGHT 8   // number of 'mickeys' vertically
  37.                           // per text character
  38.  
  39. // An array of zeroes to assign to a register structure
  40. #define ZERO_REGS    {0, 0, 0, 0, 0, 0, 0}
  41.  
  42. #define MOUSE_INT    51   // 0x33, mouse interrupt vector.
  43.  
  44.