Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Nanforum Toolkit v2.1 Reference Guide - <b>ft_mbutprs()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 FT_MBUTPRS()
 Retrieve button press status
------------------------------------------------------------------------------

 Syntax

     FT_MBUTPRS( <nButton> [, @nButPrs [, @nX [, @nY] ] ] ) -> nButStatus

 Arguments

    <nButton> is the mouse button number:

               0 - Left   Button
               1 - Right  Button
               2 - Middle Button [if applicable]

    <nButPrs> is the number of times the specified button was pressed
              since the last call to this routine. PASSED BY REFERENCE.
    <nX> is the X position of the cursor when the last press occurred.
              PASSED BY REFERENCE.
    <nY> is the Y position of the cursor when the last press occurred.
              PASSED BY REFERENCE.

 Returns

    An integer representing the button status:

               0 - no buttons pressed
               1 - left button pressed
               2 - right button pressed
               3 - left and right pressed
               4 - middle pressed
               5 - left and middle pressed
               6 - middle and right buttons pressed
               7 - all 3 buttons pressed

 Description

    Retrieves the mouse button status and the position of the cursor when
    a button was last pressed.

 Examples

    IF Empty( FT_MBUTPRS(1) )
       ? "No Item selected"
    ENDIF

 Source: MOUSE1.PRG

 Author: Leo Letendre

See Also: FT_MBUTREL() FT_MDBLCLK()

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