Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- dBsee 4.6 - The Library - <b>m_press()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
M_PRESS()
Returns the current status of mouse buttons
------------------------------------------------------------------------------
Syntax:

     M_PRESS( [<nButton>] ) --> nPress

Parameters:

     <nButton>  Button to verify
     +------------------+
     | Button  | Value  |
     |---------+--------|
     | Left    |    1   |
     | Right   |    2   |
     | Middle  |    3   |
     +------------------+

Returns:

     <nPress> If 0, no button is pressed.

Description:

     Verifies if a mouse button is being pressed.

Example:

     WHILE M_PRESS()#0  // While a mouse button
                        // is pressed
        // ...
     END

See also:

     M_EVENT()

See Also: M_EVENT()

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