rayzor
view src/mouse.h @ 20:6b11a3f8706e
foo
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Tue, 15 Apr 2014 01:36:03 +0300 |
parents | a826bf0fb169 |
children |
line source
1 #ifndef MOUSE_H_
2 #define MOUSE_H_
4 enum {
5 MOUSE_LEFT = 1,
6 MOUSE_RIGHT = 2,
7 MOUSE_MIDDLE = 4
8 };
10 enum mouse_mode {
11 MOUSE_GFX,
12 MOUSE_TEXT
13 };
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
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);
27 #ifdef __cplusplus
28 }
29 #endif
31 #endif /* MOUSE_H_ */