rayzor
diff src/mouse.h @ 7:75bc89c2abc4
fixed the mouse handling problem
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 07 Apr 2014 08:05:06 +0300 |
parents | a826bf0fb169 |
children |
line diff
1.1 --- a/src/mouse.h Mon Apr 07 06:04:11 2014 +0300 1.2 +++ b/src/mouse.h Mon Apr 07 08:05:06 2014 +0300 1.3 @@ -1,9 +1,16 @@ 1.4 #ifndef MOUSE_H_ 1.5 #define MOUSE_H_ 1.6 1.7 -#define MOUSE_LEFT 1 1.8 -#define MOUSE_RIGHT 2 1.9 -#define MOUSE_MIDDLE 4 1.10 +enum { 1.11 + MOUSE_LEFT = 1, 1.12 + MOUSE_RIGHT = 2, 1.13 + MOUSE_MIDDLE = 4 1.14 +}; 1.15 + 1.16 +enum mouse_mode { 1.17 + MOUSE_GFX, 1.18 + MOUSE_TEXT 1.19 +}; 1.20 1.21 #ifdef __cplusplus 1.22 extern "C" { 1.23 @@ -14,6 +21,8 @@ 1.24 int read_mouse(int *xp, int *yp); 1.25 void set_mouse(int x, int y); 1.26 void set_mouse_limits(int xmin, int ymin, int xmax, int ymax); 1.27 +void set_mouse_rate(int xrate, int yrate); 1.28 +void set_mouse_mode(enum mouse_mode mode); 1.29 1.30 #ifdef __cplusplus 1.31 }