Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Flipper 6.0 Help File - <b>ms_mstate()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
MS_MSTATE()
   Checks the current mouse button status.

   Syntax
         nOnOrOff = MS_MSTATE(nFlag)

   Arguments
         nFlag       Specifies the flag to check.
            +---------------------------------------------+
            | CURRENT MOUSE STATE FLAGS                   |
            ----------------------------------------------|
            |nFlag|Bit Value| Flag description            |
            ------+---------+-----------------------------|
            |  1  |    1    |Mouse cursor position changed|
            |  2  |    2    |Left button pressed          |
            |  3  |    4    |Left button released         |
            |  4  |    8    |Right button pressed         |
            |  5  |   16    |Right button released        |
            |  6  |   32    |Middle button pressed        |
            |  7  |   64    |Middle button released       |
            +---------------------------------------------+

   Returns
         nOnOrOff    Returns the state of the specified flag.
                        0 - off
                        1 - on

   Description
         MS_STATE() is exactly like the KP_MSTATE() function described
         under KEY_PRESS() except that it returns the current status of the
         mouse buttons, instead of the status at the last key press.

See Also: KEY_PRESS() MS_HALT() MS_MASK() MS_REPEAT() MS_RESET()

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