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 - mousebuttwpress() wait for specified mouse button press http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 mousebuttwpress()   Wait for specified mouse button press
------------------------------------------------------------------------------
 Declaration
   mouse.hdr

 Syntax
   proc mousebuttwpress extern
   param value uint uButton

 Arguments
   uButton is a mouse button number. See mouse.hdr for mouse button
   identifier constants.

 Return
   None.

 Description
   This procedure halts program execution until the specified mouse button
   is pressed.

 Example
   #define EXAMPLE_MOUSE
   #include example.hdr

   proc Test_mousebuttwpress
   if mouseavail()
      ? "Press left mouse button to continue..."
      mouseon()
      mousebuttwpress( MB_LEFT )
   else
      ? "Mouse is not available"
   endif
   endproc

   proc main
   Test_mousebuttwpress()
   endproc

See Also: mousebuttwrel()

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