rayzor

diff src/mouse.h @ 0:2a5340a6eee4

rayzor first commit
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 05 Apr 2014 08:46:27 +0300
parents
children a826bf0fb169
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/mouse.h	Sat Apr 05 08:46:27 2014 +0300
     1.3 @@ -0,0 +1,22 @@
     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 +
    1.11 +#ifdef __cplusplus
    1.12 +extern "C" {
    1.13 +#endif
    1.14 +
    1.15 +int have_mouse(void);
    1.16 +void show_mouse(int show);
    1.17 +int read_mouse(int *xp, int *yp);
    1.18 +void set_mouse(int x, int y);
    1.19 +void set_mouse_limits(int xmin, int ymin, int xmax, int ymax);
    1.20 +
    1.21 +#ifdef __cplusplus
    1.22 +}
    1.23 +#endif
    1.24 +
    1.25 +#endif	/* MOUSE_H_ */