sub GetMouse(byref x, byref y, byref mb1, byref mb2, byref mb3)

Gets the mouse position and button state local to the graphics window


Related: GetGlobalMouse MouseX MouseY MouseButton