Assembly Language Help (alang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Int 15h Function C2h Subfunction 07h
 Summary                                   Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     The user's handler for pointing device data is entered via a far
     call with four parameters on the stack:
 
       SS:SP+0Ah status
       SS:SP+08h x coordinate
       SS:SP+06h y coordinate
       SS:SP+04h z coordinate (always 0)
 
     The handler must exit via a far return without removing the
     parameters from the stack.
 
     The status parameter passed to the user's handler is interpreted
     as follows:
 
     Bits     Significance (if set)
 
     0        Left button pressed
     1        Right button pressed
     2-3      Reserved
     4        Sign of x data is negative
     5        Sign of y data is negative
     6        x data has overflowed
     7        y data has overflowed
     8-15     Reserved
                                    -♦-