Cinemachine freelook on mousedown only?

I found cinemachine today on youtube, and i’m really enjoying the freelook cam.

I desire 1 thing from this camera: DON’T orbit unless i’m pressing MB3.

Basically, if I hold mousebutton3 I want the freelook to “update”, and if i’m not pressing THAT button, the freelook should remain where it was placed.

it seems that the brain needs to have the update method set to “ManualUpdate” to accomplish this…
However, when looking up the documentation i’m confused how to “externally call this function”.

So here’s my try, maybe someone can help me!

    void Update()
    {

        if (cameraHandler.action.triggered)
        {
        freeLookCamera.ManualUpdate();
        }
    
    }

UPDATE
I feel silly LOL

 public CinemachineBrain updateBrain;
    void Update()
    {

        if (cameraHandler.action.triggered)
        {
        updateBrain.ManualUpdate();
        }
    
    }

But now, how do i make it while i’m holding the button? That’s a different topic i suppose.

Just a followup… This did not do what I was hoping it would. but that’s how u do it.

This worked for me:

@KuPAfoo

using UnityEngine;
using Cinemachine;

public class CameraMovement : MonoBehaviour
{
    public bool allowRotation = true;
    [SerializeField] public CinemachineFreeLook cinemachineFreeLook;
    [SerializeField] float yAxisSpeed = 2;
    [SerializeField] float xAxisSpeed = 200;

    void Start()
    {
        cinemachineFreeLook = GetComponent<CinemachineFreeLook>();
    }

    private void FixedUpdate()
    {
        HandleCamera();
    }

    void HandleCamera()
    {
        if (allowRotation)
        {
            cinemachineFreeLook.m_XAxis.m_MaxSpeed = xAxisSpeed;
            cinemachineFreeLook.m_YAxis.m_MaxSpeed = yAxisSpeed;

        }
        else
        {
            cinemachineFreeLook.m_XAxis.m_MaxSpeed = 0;
            cinemachineFreeLook.m_YAxis.m_MaxSpeed = 0;
        }
    }
}