7dd17b8319005afccb3f1a762798ed40ff66942a
[dosdemo] / src / dos / mouse.h
1 #ifndef MOUSE_H_
2 #define MOUSE_H_
3
4 enum {
5         MOUSE_LEFT              = 1,
6         MOUSE_RIGHT             = 2,
7         MOUSE_MIDDLE    = 4
8 };
9
10 enum mouse_mode {
11         MOUSE_GFX,
12         MOUSE_TEXT
13 };
14
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18
19 int have_mouse(void);
20 void show_mouse(int show);
21 int read_mouse(int *xp, int *yp);
22 void set_mouse(int x, int y);
23 void set_mouse_limits(int xmin, int ymin, int xmax, int ymax);
24 void set_mouse_rate(int xrate, int yrate);
25 void set_mouse_mode(enum mouse_mode mode);
26
27 #ifdef __cplusplus
28 }
29 #endif
30
31 #endif  /* MOUSE_H_ */