Enum not working properly.

I have the following function:

private void CamModes()
	{
		if (GUIHandler.UseCamera)
		{
			mode = PPCam.EnumCamModes.MouselookActive;
		}
		else if (Input.GetMouseButtonDown(1))
		{
			Debug.Log("RMB");
			mode = PPCam.EnumCamModes.MouselookNotActiveRMB;
			
		}
		else if (Input.GetMouseButtonDown(2))
		{
			Debug.Log("MMB");
			mode = PPCam.EnumCamModes.MouselookNotActiveMMB;
		}
		else
		{
			mode = PPCam.EnumCamModes.MouselookNotActive;
		}
	}

The first and the last one work, but the second and third only execute the Debug.Log() -bit… Any idea what might have gone wrong? Mono debugger crashes my Unity, so can’t see what’s actually happening…

You probably want to use Input.GetMouseButton instead of Input.GetMouseButtonDown since the Down version only works for one frame.