home *** CD-ROM | disk | FTP | other *** search
- /*
- * m_conditional.c
- *
- * Public Domain (p) March 1990 By Rodney Loos
- * Syntax modified by S. Sampson
- */
-
- #include <dos.h>
- #include "mouse.h"
-
- /*
- * Function to hide the mouse if it is in the region
- * when this function is called. Your program must call
- * m_display(ON) to enable the cursor again.
- */
-
- void m_conditional(int ux, int uy, int lx, int ly)
- {
- _AX = 16; /* mouse function 16 */
- _CX = ux; /* upper x screen coordinates */
- _DX = uy; /* upper y screen coordinates */
- _SI = lx; /* lower x screen coordinates */
- _DI = ly; /* lower y screen coordinates */
-
- geninterrupt(0x33); /* mouse interrupt */
- }