home *** CD-ROM | disk | FTP | other *** search
/ Graphics 16,000 / graphics-16000.iso / msdos / fractal / fdesi313 / fdes13s / fdesmous.h < prev    next >
Text File  |  1989-11-25  |  920b  |  25 lines

  1. /*
  2.         Mouse methods
  3. */
  4.  
  5. typedef struct {
  6.     int row,col,buttons;
  7.     } mouse_state;
  8.  
  9. #define MOUSE_LEFT 1
  10. #define MOUSE_RIGHT 2
  11.  
  12. int mouse_reset(void);
  13. void mouse_on(void);             /* enables the mouse cursor */
  14. void mouse_off(void);            /* disables the mouse cursor */
  15. int mouse_get(mouse_state *m);           /* get mouse position and button status */
  16. void mouse_put(mouse_state *m);          /* put mouse at position */
  17. int mouse_click(mouse_state *m); /* mouse wait until click */
  18. int mouse_click_grat(mouse_state *m);   /* mouse wait until click */
  19. extern int (*mouse_idle_job)(void);         /* the mouse idle task */
  20. int mouse_idle(void);                           /* idle mouse job */
  21. int mouse_press(mouse_state *m);
  22. extern int mouse_is;                    /* set to non-zero if mouse exists */
  23. extern int use_grat;                    /* nonzero if graticule positioning */
  24.  
  25.