home *** CD-ROM | disk | FTP | other *** search
- /**
- *
- * Name mogetmov -- Report physical mouse motion since last
- * inquiry.
- *
- * Synopsis ercode = mogetmov(pvert,phoriz);
- *
- * int ercode Error return code:
- * MO_OK if successful;
- * MO_ABSENT if mouse not found.
- * int *pvert Returned mouse vertical motion
- * in mickeys. Positive values
- * indicate motion toward the bottom
- * of the display.
- * int *phoriz Returned mouse horizontal motion
- * in mickeys. Positive values
- * indicate rightward motion.
- *
- * Description This function reports the physical motion of the mouse
- * since the last time this function was called. The units
- * used are "mickeys", which are the units of physical
- * mouse movement. (On the Microsoft mouse, the mickey is
- * 1/200 inch.)
- *
- * Returns ercode Error return code:
- * MO_OK if successful;
- * MO_ABSENT if mouse driver not installed.
- * b_mouse Number of mouse buttons (0 if no driver).
- * *pvert,*phoriz Returned mouse motion in
- * mickeys. Values may range from
- * -32,768 to 32,767.
- *
- * Version 6.00 (C)Copyright Blaise Computing Inc. 1989
- *
- **/
-
- #include <bmouse.h>
-
- int mogetmov(pvert,phoriz)
- int *pvert,*phoriz;
- {
- int result;
- DOSREG regs;
-
- regs.ax = 11;
- result = mogate(®s,®s);
-
- if (result == MO_OK)
- {
- *phoriz = regs.cx;
- *pvert = regs.dx;
- }
-
- return result;
- }