eobish
diff src/dos/mouse.h @ 7:6a350c554e46
started DOS port
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 19 Jan 2015 15:49:14 +0200 |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/dos/mouse.h Mon Jan 19 15:49:14 2015 +0200 1.3 @@ -0,0 +1,31 @@ 1.4 +#ifndef MOUSE_H_ 1.5 +#define MOUSE_H_ 1.6 + 1.7 +enum { 1.8 + MOUSE_LEFT = 1, 1.9 + MOUSE_RIGHT = 2, 1.10 + MOUSE_MIDDLE = 4 1.11 +}; 1.12 + 1.13 +enum mouse_mode { 1.14 + MOUSE_GFX, 1.15 + MOUSE_TEXT 1.16 +}; 1.17 + 1.18 +#ifdef __cplusplus 1.19 +extern "C" { 1.20 +#endif 1.21 + 1.22 +int have_mouse(void); 1.23 +void show_mouse(int show); 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 +} 1.32 +#endif 1.33 + 1.34 +#endif /* MOUSE_H_ */