System.MouseDown

From Xojo Documentation

Read-Only Property (As Boolean )
BooleanValue = aSystem.MouseDown

Supported for all project types and targets.

True if the mouse button has been pressed.