You need to call this function from the Update function, since the state gets reset each frame. It will not return true until the user has released the mouse button ...
docs.unity3d.com