home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_300 / 328_02 / wmousemp.c < prev    next >
C/C++ Source or Header  |  1991-03-17  |  532b  |  27 lines

  1. /* wmousemv.c = routine to move mouse to a specified position
  2.  */
  3. #ifndef TEXTONLY
  4.     /* this is strictly a graphics-mode program. */
  5.     
  6. #include "wsys.h"
  7.      
  8.  
  9. void wmouse_move_pixel ( int x, int y )
  10.     {
  11.     int xabs, yabs;
  12.     PSEUDOREGS
  13.     
  14.     /* graphics mode translate 'characters' into pixels, 1 pixel=1 mickey
  15.      */
  16.     xabs = x+ wpxchar * ( w0-> winleft);
  17.     yabs = y+ wpxchar * ( w0-> wintop );
  18.     
  19.     _DX = yabs;
  20.     _CX = xabs;
  21.     _AX = 0x04;
  22.     INTERRUPT ( 0x33 );
  23.     
  24.     return;        /* wmouse_move_pixel */
  25.     }
  26. #endif     /* TEXTONLY */
  27.