MOUSESTATE

Syntax:

MOUSESTATE mx##, my##, mba##, mbb##

Gets the mouse coordinartes and button states. The value of mx## and my## represent the coodinates of the mouse pointer (which is hidden). mba## and mbb## are the states of the mouse buttons (1=Pushed, 0=Released).

Sample:

// End with ESC

WHILE 1=1 // Endless loop
    MOUSESTATE mx, my, mba, mbb
    PRINT “<=”+mba+mbb, mx, my
    SHOWSCREEN
WEND