X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fdos%2Fmouse.h;fp=src%2Fdos%2Fmouse.h;h=7dd17b8319005afccb3f1a762798ed40ff66942a;hb=757e7697c9a4434df6f3fdf3234de504bb4636bc;hp=0000000000000000000000000000000000000000;hpb=ecc362e702b77d5c1334656e6f4dc9b17abcb767;p=dosdemo diff --git a/src/dos/mouse.h b/src/dos/mouse.h new file mode 100644 index 0000000..7dd17b8 --- /dev/null +++ b/src/dos/mouse.h @@ -0,0 +1,31 @@ +#ifndef MOUSE_H_ +#define MOUSE_H_ + +enum { + MOUSE_LEFT = 1, + MOUSE_RIGHT = 2, + MOUSE_MIDDLE = 4 +}; + +enum mouse_mode { + MOUSE_GFX, + MOUSE_TEXT +}; + +#ifdef __cplusplus +extern "C" { +#endif + +int have_mouse(void); +void show_mouse(int show); +int read_mouse(int *xp, int *yp); +void set_mouse(int x, int y); +void set_mouse_limits(int xmin, int ymin, int xmax, int ymax); +void set_mouse_rate(int xrate, int yrate); +void set_mouse_mode(enum mouse_mode mode); + +#ifdef __cplusplus +} +#endif + +#endif /* MOUSE_H_ */