Only Invert axis if using Gamepad?

Hi there, I’m using a free-look Cinemachine camera for my camerawork and the new input system for my controls. I’ve noticed that moving the camera along the x-axis feels best on a mouse when that control is not inverted, however moving the camera along the x-axis feels best on a gamepad when that control is inverted. I’m having a hard time finding the scripting references for this, does anyone know how to change the inverted-ness depending on a condition?

You could do freeLook.m_XAxis.m_InvertInput = condition

Worked perfectly, thank you!

1 Like