home *** CD-ROM | disk | FTP | other *** search
- /**
- *
- * Name mocurmov -- Move mouse cursor.
- *
- * Synopsis ercode = mocurmov(vert,horiz);
- *
- * int ercode Error return code:
- * MO_OK if successful;
- * MO_ABSENT if mouse not found.
- * unsigned vert,horiz
- * New mouse cursor position in
- * pixels (relative to (0,0) at
- * upper left corner of screen).
- *
- * Description This function moves the mouse cursor.
- *
- * The new position is restricted to the current mouse
- * cursor range as set by MORANGE. If the requested
- * position is out of range, then the resulting position is
- * as near as possible to the requested position as the
- * range limits permit.
- *
- * The coordinates are rounded down (if necessary) to the
- * nearest values allowed for the current display mode.
- *
- * Use MOHIDE to reveal the mouse cursor.
- *
- * 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).
- *
- * Version 6.00 (C)Copyright Blaise Computing Inc. 1989
- *
- **/
-
- #include <bmouse.h>
-
- int mocurmov(vert,horiz)
- unsigned vert,horiz;
- {
- DOSREG regs;
-
- regs.ax = 4;
- regs.cx = horiz;
- regs.dx = vert;
- return mogate(®s,®s);
- }