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_buttons() - get number of buttons on the mouse</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Name:     m_buttons() - get number of buttons on the mouse
  Usage:    <integer> = m_buttons()
  Params:   none
  Returns:  an integer equal to the number of buttons on the mouse

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

                 mousetrap(0,28)
                 mousetrap(1,27)
                 mousetrap(2,13)

            @ 0,0 say "Left mouse button to popup help"
            @ 1,0 say "Right mouse button to ESCape"
            if (m_buttons() > 2)
                 @ 2,0 say "Middle button to enter"
            endif

            m_trapset()
            memvar = space(20)

            @ 10,0 10 say "Enter Data:" get memvar
            read

            m_trapfree()

  Note:     If no mouse is present, m_buttons() returns 0. If a mouse is
            present, but it is set off via the mouse() function,
            m_buttons() still returns 0.


See Also: ismouse() mousetrap() m_trapset() m_trapfree()

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