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 06H
   Summary  Back
──────────────────────────────────────────────────────────────────────────────
 
  Description:  Set Scaling or Get Status      [PS/2]
 
  Returns the current status of the system's mouse or other pointing device
  or sets the device's scaling factor.
 
  Input                                  Output
  ═══════════════════════════            ══════════════════════════════
  AH=C2H                                 If function successful
  AL=06H                                 Carry flag=clear
  BH=extended command                    AH=00H
     00H=return device status            and, if called with BH=00H
     01H=set scaling at 1:1              BL=status byte
     02H=set scaling at 2:1                 Bit(s)  Significance
                                            ══════  ════════════
                                            0       =1 if right button
                                                     pressed
                                            1       =reserved
                                            2       =1 if left button pressed
                                            3       =reserved
                                            4       =0 if 1:1 scaling
                                                     1 if 2:1 scaling
                                            5       =0 if device disabled
                                                     1 if device enabled
                                            6       =0 if stream mode
                                                     1 if remote mode
                                            7       =reserved
                                         CL=resolution
                                            00H=1 count per millimeter
                                            01H=2 counts per millimeter
                                            02H=4 counts per millimeter
                                            03H=8 counts per millimeter
                                         DL=sample rate
                                            0AH=10 reports per second
                                            14H=20 reports per second
                                            28H=40 reports per second
                                            3CH=60 reports per second
                                            50H=80 reports per second
                                            64H=100 reports per second
                                            C8H=200 reports per second
                                         If function unsuccessful
                                         Carry flag=set
                                         AH=status (see Int 15H Function C2H
                                                    Subfunction 00H)
                                    -♦-