Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FreshWin (c) Fresh Technologies - <b>msdblclk() mouse function</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  MSDBLCLK()                                                  Mouse Function
 Purpose..: Check for a double mouse click
-------------------------------------------------------------------------------
 Syntax...: MsDblClK( [<nTimeOut> [, <nButton>]] ) --> TRUE|FALSE

 Arguments: [<nTimeOut>] = time to wait for a double click.

            [<nButton>]  = the mouse button to check. Valid button numbers
                           are defined in FW_MAIN.CH as follows:

              Mouse Button Translate Directives as found in FW_MAIN.CH
              --------------------------------------------------------
              Value  FW_MAIN.CH   Button(s) pressed
              --------------------------------------------------------
              0      MB_NONE      none
              1      MB_LEFT      left -- default
              2      MB_RIGHT     right
              3      MB_LT_RT     middle
              4      MB_MIDDLE    left and right
              5      MB_LT_MD     left and middle
              6      MB_MD_RT     middle and right
              7      MB_ALL       all buttons pressed
              --------------------------------------------------------

 Returns..: TRUE if a double click occurred during the specified
            timeout.

 Source...: FW_MAIN.CH
-------------------------------------------------------------------
 Example..: The example checks for a double click after the mouse
            button has been pressed. If there is a double click before
            2/10s of a second, the function returns TRUE.

      if ( MsIsPress( MB_LEFT ) )
         ? MsDblClk( .2, MB_LEFT )
      endif

See Also: MsSetSpeed() MsIsPress()

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