void Update()
    {
        if (Controller == null)
        {
            Debug.Log("Controller not initialized");
            return;
        }

        if (Controller.GetPressDown(triggerButton))
        {
            rec.BeginRecording();
        }
        if (Controller.GetPressUp(triggerButton))
        {
            rec.EndRecording();
        }
        if (Controller.GetPressDown(downPadButton))
        {
            rec.StoreGesture();
        }
    }