rayzor
annotate src/mouse.h @ 21:8c4859442200
foo
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Tue, 15 Apr 2014 20:52:05 +0300 |
parents | a826bf0fb169 |
children |
rev | line source |
---|---|
nuclear@1 | 1 #ifndef MOUSE_H_ |
nuclear@1 | 2 #define MOUSE_H_ |
nuclear@1 | 3 |
nuclear@7 | 4 enum { |
nuclear@7 | 5 MOUSE_LEFT = 1, |
nuclear@7 | 6 MOUSE_RIGHT = 2, |
nuclear@7 | 7 MOUSE_MIDDLE = 4 |
nuclear@7 | 8 }; |
nuclear@7 | 9 |
nuclear@7 | 10 enum mouse_mode { |
nuclear@7 | 11 MOUSE_GFX, |
nuclear@7 | 12 MOUSE_TEXT |
nuclear@7 | 13 }; |
nuclear@1 | 14 |
nuclear@1 | 15 #ifdef __cplusplus |
nuclear@1 | 16 extern "C" { |
nuclear@1 | 17 #endif |
nuclear@1 | 18 |
nuclear@1 | 19 int have_mouse(void); |
nuclear@1 | 20 void show_mouse(int show); |
nuclear@1 | 21 int read_mouse(int *xp, int *yp); |
nuclear@1 | 22 void set_mouse(int x, int y); |
nuclear@1 | 23 void set_mouse_limits(int xmin, int ymin, int xmax, int ymax); |
nuclear@7 | 24 void set_mouse_rate(int xrate, int yrate); |
nuclear@7 | 25 void set_mouse_mode(enum mouse_mode mode); |
nuclear@1 | 26 |
nuclear@1 | 27 #ifdef __cplusplus |
nuclear@1 | 28 } |
nuclear@1 | 29 #endif |
nuclear@1 | 30 |
nuclear@1 | 31 #endif /* MOUSE_H_ */ |