add relative mouse handling in mouse.asm
[retroray] / 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 #ifdef __cplusplus
11 extern "C" {
12 #endif
13
14 int have_mouse(void);
15 void show_mouse(int show);
16 int read_mouse_bn(void);
17 int read_mouse(int *xp, int *yp);
18 void read_mouse_rel(int *xp, int *yp);
19 void set_mouse(int x, int y);
20 void set_mouse_limits(int xmin, int ymin, int xmax, int ymax);
21 void set_mouse_rate(int xrate, int yrate);
22
23 #ifdef __cplusplus
24 }
25 #endif
26
27 #endif  /* MOUSE_H_ */