home *** CD-ROM | disk | FTP | other *** search
- /**
- *
- * Name mojump -- Set mouse acceleration threshold.
- *
- * Synopsis ercode = mojump(speed);
- *
- * int ercode Error return code:
- * MO_OK if successful;
- * MO_ABSENT if mouse not found.
- * unsigned speed Threshold speed (in mickeys per second)
- * for automatic acceleration of mouse
- * cursor movement.
- *
- * Description This function allows the mouse cursor to move faster
- * than normal when the mouse is moved fast. Normally, the
- * mouse cursor moves according to the rates set by
- * MOSPEED. However, when the mouse is moved faster than a
- * specified speed, the cursor speed increases, making it
- * easier to move the cursor across large distances.
- *
- * Mickeys are units of physical mouse motion. On the
- * Microsoft mouse, one mickey is 0.005 inches.
- *
- * The exact degree of acceleration depends on the mouse
- * driver software. For the Microsoft mouse, the speed
- * doubles.
- *
- * The default speed-jump threshold when the mouse is
- * reset is 64 mickeys per second. That is, if you move
- * the mouse faster than 64 mickeys per second, the mouse
- * cursor will begin to move faster than it normally does.
- * If you move the mouse slowly, the cursor will also move
- * slowly, allowing easier control over fine motion.
- *
- * You can suppress the speed-jump effect by setting the
- * threshold to a large value such as 32,767.
- *
- * 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 mojump(speed)
- unsigned speed;
- {
- DOSREG regs;
-
- regs.ax = 19;
- regs.dx = speed;
- return mogate(®s,®s);
- }