BUTTON?
Syntax BUTTON? 
 
Explanation BUTTON? reports the state of the (left) mouse button. BUTTON? reports TRUE when the button is depressed or FALSE when the button is not depressed.

See also MOUSE.
 

Example The following procedure uses the mouse as a simple drawing tool.

TO DRAW.WITH.MOUSE
     HT
     LABEL "LOOP
     SETXY MOUSE
     IF BUTTON? THEN PD ELSE PU
     GO "LOOP
END

(Click on the stop sign to end the procedure.)

TopIndex