Microsoft KB Archive/19847

Function 06 - Get Button Release Information PSS ID Number: Q19847 Article last modified on 05-14-1993 PSS database name: H_Mouse

1.x 2.x 3.x 4.x 5.x 6.x 7.x 8.x

MS-DOS

Summary:

The following mouse driver function can be used to obtain cursor position with respect to button releases:

FUNCTION 06: - GET BUTTON RELEASE INFORMATION Inputs: AX = 6 BX = 0 –> Get LEFT button info BX = 1 –> Get RIGHT button info Outputs: AX = 0 if button is currently NOT pressed AX = 1 if button is currently pressed BX = Count of button releases since last call to this func. CX = Cursor position (horizontal) at last release DX = Cursor position (vertical) at last release

The maximum value that can be returned for AX (button press count) is 32767. The returned cursor position stays unchanged upon successive calls to this function after the returned button count zeros (as occurs when the button was not released since the last call). This function is especially useful when attempting to detect button events within particular rectangular fields on the display.

Additional reference words: 7.00 7.04 7.05 8.00 8.10 8.20 9.00

Copyright Microsoft Corporation 1993.