home *** CD-ROM | disk | FTP | other *** search
/ Teach Yourself Game Programming in 21 Days / TYGAMES_R.ISO / source / gamelib / graph7m.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-05-31  |  1.1 KB  |  28 lines

  1.  
  2. // M O U S E  L I B R A R Y  H E A D E R //////////////////////////////////////
  3.  
  4. // D E F I N E S  ////////////////////////////////////////////////////////////
  5.  
  6. // mouse sub-function calls
  7.  
  8. #define MOUSE_INT                0x33 //mouse interrupt number
  9. #define MOUSE_RESET              0x00 // reset the mouse
  10. #define MOUSE_SHOW               0x01 // show the mouse
  11. #define MOUSE_HIDE               0x02 // hide the mouse
  12. #define MOUSE_BUTT_POS           0x03 // get buttons and postion
  13. #define MOUSE_SET_SENSITIVITY    0x1A // set the sensitivity of mouse 0-100
  14. #define MOUSE_MOTION_REL         0x0B // query motion counters to compute
  15.                                       // relative motion
  16.  
  17. // defines to make reading buttons easier
  18.  
  19. #define MOUSE_LEFT_BUTTON        0x01 // left button mask
  20. #define MOUSE_RIGHT_BUTTON       0x02 // right button mask
  21. #define MOUSE_CENTER_BUTTON      0x04 // center button mask
  22.  
  23. // P R O T O T Y P E S ///////////////////////////////////////////////////////
  24.  
  25. int Squeeze_Mouse(int command, int *x, int *y,int *buttons);
  26.  
  27.  
  28.