home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c070 / 4.ddi / TOOLS.4 / TCTSRC1.EXE / MOCURMOV.C < prev    next >
Encoding:
C/C++ Source or Header  |  1989-03-31  |  1.2 KB  |  49 lines

  1. /**
  2. *
  3. * Name        mocurmov -- Move mouse cursor.
  4. *
  5. * Synopsis    ercode = mocurmov(vert,horiz);
  6. *
  7. *        int ercode      Error return code:
  8. *                    MO_OK if successful;
  9. *                    MO_ABSENT if mouse not found.
  10. *        unsigned vert,horiz
  11. *                  New mouse cursor position in
  12. *                  pixels (relative to (0,0) at
  13. *                  upper left corner of screen).
  14. *
  15. * Description    This function moves the mouse cursor.
  16. *
  17. *        The new position is restricted to the current mouse
  18. *        cursor range as set by MORANGE.  If the requested
  19. *        position is out of range, then the resulting position is
  20. *        as near as possible to the requested position as the
  21. *        range limits permit.
  22. *
  23. *        The coordinates are rounded down (if necessary) to the
  24. *        nearest values allowed for the current display mode.
  25. *
  26. *        Use MOHIDE to reveal the mouse cursor.
  27. *
  28. * Returns    ercode          Error return code:
  29. *                    MO_OK if successful;
  30. *                    MO_ABSENT if mouse driver not installed.
  31. *        b_mouse       Number of mouse buttons (0 if no driver).
  32. *
  33. * Version    6.00 (C)Copyright Blaise Computing Inc.  1989
  34. *
  35. **/
  36.  
  37. #include <bmouse.h>
  38.  
  39. int mocurmov(vert,horiz)
  40. unsigned vert,horiz;
  41. {
  42.     DOSREG regs;
  43.  
  44.     regs.ax = 4;
  45.     regs.cx = horiz;
  46.     regs.dx = vert;
  47.     return mogate(®s,®s);
  48. }
  49.