home *** CD-ROM | disk | FTP | other *** search
- /**
- *
- * Name mospeed -- Set mouse sensitivity.
- *
- * Synopsis ercode = mospeed(vert,horiz);
- *
- * int ercode Error return code:
- * MO_OK if successful;
- * MO_ABSENT if mouse not found.
- * unsigned vert New mouse vertical sensitivity
- * (mickeys per 8 pixels).
- * Limits are 1 to 32767.
- * unsigned horiz New mouse horizontal sensitivity
- * (mickeys per 8 pixels).
- * Limits are 1 to 32767.
- *
- * Description This function sets the mouse sensitivity, i.e., the
- * speed with which the mouse cursor moves in response to
- * physical mouse motion.
- *
- * The sensitivity is expressed in terms of mickeys per
- * pixel of cursor movement. (Mickeys are units of
- * physical mouse motion. On the Microsoft mouse, one
- * mickey is 0.005 inches.) Low values correspond to
- * faster cursor motion, while high values provide greater
- * control over fine motion.
- *
- * The default sensitivity when the mouse is reset is 16
- * mickeys per 8 pixels vertically and 8 mickeys per 8
- * pixels horizontally.
- *
- * 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 mospeed(vert,horiz)
- unsigned vert,horiz;
- {
- DOSREG regs;
-
- regs.ax = 15;
- regs.cx = horiz;
- regs.dx = vert;
- return mogate(®s,®s);
- }