qa.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  Notes  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:
    Bit(s)     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
                                    -♦-