Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FUNCky - <b>name:</b> <b>m_release() - wait for a mouse button to be released</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Name:     m_release() - wait for a mouse button to be released
  Usage:    <integer> = m_release(<button>)
  Params:   integer <button> : 0=left, 1=right, (2=middle - PC mouse)
  Returns:  integer equal to the inkey() value of the key struck,
            0 if no key struck

 ---------------------------------- Example ---------------------------------

                 print(10,0,"Press the left mouse button twice.",112)
                 m_clicks(2)
                 m_release(0)

                 print(10,0,"Make your selection...",112)
                 key = m_release(0)
                 if  ((key = 13) .or. (m_region(10,10,10,20))
                      do PROC1
                 endif

            * This is similar to m_inbutton() except in that the
            * function does not return until the button is RELEASED.

  Note:     M_release() acts like waitkey(0). If a key is pressed it's value
            is stored in lastkey() and returned. This is to write mouse
            routines that work with and without the mouse at the same
            time. SET KEY TO works as well as the timeout() function.
            It also checks the value set by m_clicks().


See Also: m_inbutton() m_clicks() isbutton() _isbutton()

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