Returns the current status of all mouse buttons, and the number of presses and position of the last press for a specified mouse button since the last call to this function for that button. The press counter for the button is reset to zero.
Call with:
AX = 0005H
BX = button identifier
0 = left button
1 = right button
2 = center button
Returns:
AX = button status
Bit(s) Significance (if set)
0 left button is down
1 right button is down
2 center button is down
3—15 reserved (0)
BX = button press counter
CX = horizontal (X) coordinate of last button press
DX = vertical (Y) coordinate of last button press