MOUSEDOWN |
Top Previous Next |
Syntax INT = MOUSEDOWN(button as INT) Description Returns the current state of a mouse button. Parameters button - 1 for left, 2 for right, or 3 for middle button. Return value TRUE if button is down, FALSE otherwise. Remarks Does not require DirectInput or a screen to be opened. If used with a regular window you must have a normal message handler. The function returns the state of the physical hardware and does not take into account any button swapping done in the control panel. Example usage IF MOUSEDOWN(2) |