Input.is_mouse_released

if the mouse was released this frame

class Input
static
bool
is_mouse_released

Meta