home *** CD-ROM | disk | FTP | other *** search
- //
- // *************************************************************************
- // * *
- // * OMEGA C++ Windowing Class Library *
- // * ================================= *
- // * *
- // * Copyright 1991,92 Tom Clancy *
- // * Submitted to the public domain, April 1992 *
- // * *
- // *************************************************************************
- // * *
- // * Mouse Class Object *
- // * *
- // *************************************************************************
- //
-
-
- #ifndef _OMMOUSE
- #define _OMMOUSE
- #endif
-
- enum mouse_events {
- mButton0=500,
- mButton1,
- mButton2,
- };
-
-
- int installmousedriver();
- void initmouse();
-
- class mouse {
-
- int mx, my, mb, omx, omy, omb;
-
- public:
-
- mouse(void); // constructor
- ~mouse(void); // destructor
-
-
- int mouseinstalled(void);
- void resetmouse(void);
- void showmouse(void);
- void hidemouse();
- void mouse_exclusion(int x, int y, int x2, int y2);
- int myint();
- int mousex() {getmouse(mx, my, mb); return mx;}
- int mousey() {getmouse(mx, my, mb); return my;}
- int mouseb() {getmouse(mx, my, mb); return mb;}
- virtual void getmouse(int &x, int &y, int &button);
- void setmouse(int x, int y);
-
- void getbuttonpress(int button, int &stat, int &presses, int &xpress, int &ypress);
- void getbuttonrelease(int button, int &status, int &presses, int &xrelease, int &yrelease);
- void hmouselimit(int min, int max);
- void vmouselimit(int min, int max);
- void settextcursor(int cursorselect, int screenmask, int cursormask);
- void setmickeyratio(int xmickey, int ymickey);
- };
-
-
-
-