Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- TSDWIN: Clipper 5.0 Interface Library - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

 twMBPress( nButton, nPress, nX, nY )
 ----------------------------------------------------------------------------
     Retrieve button press information for a particular mouse button.
     This function calls _twM5?() and so resets the internal counters
     for button presses when it is called.

       Arguments:

     nButton - 'N' button number: ( 0 - Left, 1 - Right )

     nPress  - 'N' The number of times the button was pressed since the
                   last call to this routine. This parameter is passed
                   by reference.

     nX      - 'N' X coordinate of the mouse cursor when the last press
                   occurred. This parameter is passed by reference.

     nY      - 'N' Y coordinate of the mouse cursor when the last press
                   occurred. This parameter is passed by reference.

       Return:

     1 if the button is down, 0 if it is released.

       Example:

     IF twMBPress( 1, @nNoPresses, @nMouseX, @nMouseY )
         // do something using the press number or the coordinates.
     ENDIF

See Also: twMButtonDown() _twM5A() _twM5B() _twM5C() _twM5D()

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