Vertical on Joystick does not work on PC but Horizontal works both on keyboard and Joystick

Hello Experts!

I am trying to make my joystick’s vertical axis work to rotate my gun but it only works on the keyboard.
However, the Horizontal moves on the joystick, the horizontal however also is using rigidbody to move the vehicle, as the gun is just transform rotate on eulerangles…
Any suggestions?

void Update()
if (Input.GetButton(“Vertical”))
Transform gunner = GetComponent();
gunner.eulerAngles += Vector3.forward * Input.GetAxisRaw(“Vertical”) * 5f;



Anyone out there?