Function Window.isMouseCaptured

returns true if mouse is currently captured

bool isMouseCaptured();