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>isbutton() - check if a mouse button has been pressed</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Name:     isbutton() - check if a mouse button has been pressed
  Usage:    <logical> = isbutton(<button>)
  Params:   int <button> : 0=left, 1=right, (2=middle PC mouse)
  Returns:  .T. if button pressed, .F. if not

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

                 if .not. isbutton(1)
                      loop
                 else
                      mvar = m_row()
                 endif

  Note:     Isbutton() does not wait for a mouse click or keyboard press.
            It merely does a quick check. Useful for using inside loops
            for active updating of prompts. SET KEY TO works as well.
            If a key is pressed before the mouse button is clicked, the key
            value is stored in lastkey() and isbutton() returns .F.


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

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