eobish

view src/dos/mouse.h @ 8:c0e8bbf96849

merged
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 19 Jan 2015 15:49:36 +0200
parents
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_ */