home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / mouse / tcmouse / mouse.h < prev    next >
Encoding:
Text File  |  1987-10-14  |  1.7 KB  |  72 lines

  1.  
  2. typedef struct {
  3.         int m1,m2,m3,m4;
  4.         } mparams;  /* parameters for mouse calls */
  5.  
  6.  
  7. void mouse(mparams *p);
  8.  
  9.  
  10. int mouse_init(void); /* returns 0 if mouse software not installed */
  11.  
  12. void show_cursor(void);
  13.  
  14. void hide_cursor(void);
  15.  
  16. void get_status(int *button, int *curx, int *cury);
  17. /* Function returns the status and postion of the mouse */
  18.  
  19.  
  20. void pos_mouse(int x, int y);
  21. /* Function to place the mouse at x,y */
  22.  
  23.  
  24. void b_press(int btn, int *bnow, int *bcount, int *x, int *y);
  25. /* Function to get information about individual button presses */
  26.  
  27.  
  28. void sethbounds(int l, int r); /* set left and right boundaries */
  29.  
  30.  
  31. void setvbounds(int t, int b); /*set top and bottom bounds */
  32.  
  33.  
  34.  
  35. void setgraphics(int hspot, int vspot, void far *cmask);
  36. /* Function sets a graphics cursor,
  37.    should now work with all memory models. */
  38.  
  39.  
  40.  
  41. void setspeed(int x, int y);
  42. /* function to set the mickey to pixel ratio */
  43.  
  44. void set_threshold(int);
  45. /* set threshold speed for doubling cursor movement */
  46.  
  47.  
  48. void set_subroutine(int,void (far *)(void));
  49. /* set subroutine for mouse to conditionally call */
  50. /* the subroutine must be prototyped as void far func (void) */
  51. /* -- it has to do a far return.                             */
  52.  
  53.  
  54.  
  55. void b_release(int,int *,int *,int *,int *);
  56. /* get number of button releases since last call */
  57.  
  58. void settext(int,int,int);
  59. /* set text mode cursor to hardware cursor or software cursor */
  60.  
  61.  
  62. void motion(int *,int *);
  63. /* get distance moved */
  64.  
  65.  
  66. void light_pen(int);
  67. /* turn light_pen emulation on or off */
  68.  
  69.  
  70. void conditional_off(int,int,int,int);
  71. /* define area of screen to conditionally hide cursor during update */
  72.