Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Sunshow Pro V3.0 - <b>checkmouse()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
CheckMouse()

Returns the status of mouse driver or number of mouse buttons


Syntax

CheckMouse()


Returns

0
No mouse driver loaded or no mouse connected.

1
A one button mouse found.

2
A two button mouse found.

3
A three button mouse found.


Remarks

CheckMouse() should be called prior to calling any other mouse functions. 
It returns the status of the mouse driver or number of mouse buttons, if 
driver is loaded and mouse connected. This function returns 0 if driver is 
not loaded even though a mouse is connected. Returns the number of buttons 
in situations where a mouse driver may be loaded with no mouse physically 
connected. You must have a mouse driver that supports Microsoft mouse 
compatible function calls through INT33. Your mouse driver should be 
configured for Microsoft mode rather than Mouse Systems, or other 
non-Microsoft modes.


Example

nStatus = CheckMouse()
IF nStatus = 0
    ? "No mouse driver detected" 
ELSEIF nStatus = 1
    ? "One button mouse detected"
ELSEIF nStatus = 2
    ? "Two button mouse detected"
ELSEIF nStatus = 3
    ? "Three button mouse detected"
ENDIF

For other examples of how to use the mouse support functions, see 
SUNMOUSE.PRG, an example program distributed with Sunshow Pro.



See Also: CloseLiveMouse() GetMousePosition() HideMouse() LimitMouse() OpenLiveMouse() PositionMouse() SetMouseCursor() ShowMouse()

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