Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Library for Clipper - <b>l_ismouse()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
                                 L_ISMOUSE()


Syntax:        L_ISMOUSE()


Purpose:       To determine if the mouse is plugged in and
               operational.
               This function initialises the mouse and resets its
               default values.


Arguments:     None.


Returns:       An integer value.
               The number of mouse buttons is returned if the mouse is
               operational otherwise 0 is returned.
               2 = A two-button mouse.
               3 = A three-button mouse.


Usage:         Use this function after L_CHKMDRVR() has been called.
               The mouse driver must first be present before using any
               mouse functions.
               See appendix for mouse default values.


Examples:      * Check for presence of mouse driver
               status = L_CHKMDRVR()
               IF status
                  buttons = L_ISMOUSE()
                  IF buttons=0
                     ? "Mouse driver functional."
                     ?"Mouse absent or not functional."
                     wait
                  ENDIF
               ELSE
                  ? Mouse driver not present."
               ENDIF


Language:      Assembler

See Also: L_CHKMDRVR()

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