home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_08_12 / tc_mouse.h < prev    next >
Text File  |  1989-12-31  |  3KB  |  90 lines

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