Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Programmers Reference 0.02b - <b>int 33h, 03h (3) get mouse position and button status</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
INT 33h,  03h (3)        Get Mouse Position and Button Status

    Returns the state of the mouse buttons and the coordinates of the cursor

       On entry:      AX         03h

       Returns:       BX         Button Status
                      CX         Horizontal Position
                      DX         VerticalPosition

  --------------------------------------------------------------------------

    Function 3 returne the state of the left and right mouse buttons and the
    horizontal and vertical coordinates of the cursor.

    The button state is a single integer value. Bit 0 represents the left
    button; bit 1 represents the right button. Theese bits are 1 if the
    corresponding button is down, and 0 if it is up.

    The cursor coordinates are allways within the range of minimum and
    maximum values for the virtual screen.

See Also: INT 33h, 04h Virtual Screen

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson