Returns the current status of the system's mouse or other pointing device or sets the device's scaling factor.
Call with:
AH = C2H
AL = 06H
BH = extended command
00H = return device status
01H = set scaling at 1:1
02H = set scaling at 2:1
Returns:
If function successful
Carry flag = clear
AH = 00H
and, if called with BH = 00H
BL = status byte
Bit 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)