Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - mouseanybutton() determine if a mouse button is pressed http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 mouseanybutton()    Determine if a mouse button is pressed
------------------------------------------------------------------------------
 Declaration
   mouse.hdr

 Syntax
   func logical mouseanybutton extern

 Arguments
   None.

 Return
   A logical indicating if a mouse button was pressed.

 Description
   The mouseanybutton() function returns .t. if any of the available mouse
   buttons was pressed at function call time.

 Example
   #define EXAMPLE_MOUSE
   #include example.hdr

   proc Test_mouseanybutton
   if mouseavail()
      ? "Press a mouse button to continue"
      mouseon()
      do while mouseanybutton() == .f.
      enddo
      ? "Mouse button was pressed"
   else
      ? "No mouse available"
   endif
   endproc

   proc main
   Test_mouseanybutton()
   endproc

See Also: mousebuttval() mousechkbutton() mouseclick()

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