home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_02_05 / 2n05038a < prev    next >
Text File  |  1991-03-27  |  3KB  |  92 lines

  1.  
  2. /*
  3.         TITLE:      Header file for MicroSoft mouse library;
  4.         FILENAME:   MOUSELIB.H;
  5.         COMPILER:   Turbo C V. 1.5+;
  6.         NOTES:      Has most calls to Microsoft Mouse Driver Functions;
  7. */
  8.  
  9.                            /*  Int 33h  Functions */
  10.  
  11. #if !defined(MOUSELIB_H)
  12. #define MOUSELIB_H
  13.  
  14. #if defined(__cplusplus)
  15. extern "C"  {
  16. #endif
  17.  
  18. #define LEFT_BUTTON 1
  19. #define RIGHT_BUTTON 2
  20. #define BOTH_BUTTONS 3
  21.  
  22. int mouse_reset(int *num_buttons);      /*  Func 00h    */
  23. void mouse_show(void);                  /*  Func 01h    */
  24. void mouse_hide(void);                  /*  Func 02h    */
  25. int mouse_get_pos(int *x, int *y);      /*  Func 03h    */
  26. void mouse_set_pos(int x, int y);       /*  Func 04h    */
  27.  
  28. int mouse_button_press(int *x, int *y, int *count, int button);
  29.         /* Func 05h */
  30.  
  31. int mouse_button_rel(int *x, int *y, int *count, int button);
  32.         /* Func 06h */
  33.  
  34. void mouse_limit_x(int min_x, int max_x);   /* Func 07h */
  35. void mouse_limit_y(int min_y, int max_y);   /* Func 08h */
  36.  
  37. void mouse_set_graphcursor(int xspot,int yspot,void far *masks);
  38.         /* Func 09h */
  39.  
  40. void mouse_set_textcursor(int cursor_type,int scr_mask,int curs_mask);
  41.         /* Func 0Ah */
  42.  
  43. void mouse_get_movement(int *x,int *y);     /* 0Bh */
  44.  
  45. void mouse_set_eventhandler(int event_mask, void far (*mhandler)());
  46.         /* Func 0Ch */
  47.  
  48. void mouse_start_pen_emul(void);    /* Func 0Dh */
  49. void mouse_stop_pen_emul(void);     /* Func 0Eh */
  50.  
  51. void mouse_set_movement_ratio(int x_ratio,int y_ratio);
  52.         /* Func 0Fh */
  53.  
  54. void mouse_conditional_off(int left,int top,int right,int bottom);
  55.         /* Func 10h */
  56.  
  57. void mouse_set_speed(int threshold);    /* Func 13h */
  58.  
  59. void far *mouse_swap_vector(int new_mask,int *old_mask,void far *new_vector);
  60.         /* Func 14h */
  61.  
  62. int mouse_get_bufsize(void);                    /* Func 15h */
  63. void mouse_save_state(void far *state_buf);     /* Func 16h */
  64. void mouse_restore_state(void far *state_buf);  /* Func 17h */
  65.  
  66. void mouse_set_alt_handler(int alt_mask,void far (*func)());
  67.         /* Func 18h */
  68.  
  69. int mouse_get_alt_handler(int alt_mask,void far *handler);
  70.         /* Func 19h */
  71.  
  72. void mouse_set_sens(int x_ratio,int y_ratio,int threshold);
  73.         /* Func 1Ah */
  74.  
  75. void mouse_get_sens(int *x_ratio,int *y_ratio,int *threshold);
  76.         /* Func 1Bh */
  77.  
  78. void mouse_set_crt_page(int crt_page);  /* Func 1Dh */
  79. int mouse_get_crt_page(void);           /* Func 1Eh */
  80.  
  81. int mouse_disable_drvr(void far *vector_33h);
  82.         /* Func 1Fh */
  83.  
  84. void mouse_enable_drvr(void);           /* Func 20h */
  85. int mouse_soft_reset(int *nbuttons);    /* Func 21h */
  86.  
  87. #if defined(__cplusplus)
  88. };
  89. #endif
  90.  
  91. #endif
  92.