title: 1st Person camera controller not working with Right joystick PS controller
body: <p>I was trying trying to get my right joystick to control my first person camera in unity. I've tried duplicating Mouse X and Mouse Y but it always snaps upwards. How do I get this working?</p>
  <pre><code>using System.Collections;
  using System.Collections.Generic;
  using UnityEngine;
  
  public class MouseLook : MonoBehaviour
  
  {
  
      public float mouseSensitivity = 100f;
  
      public Transform playerBody;
  
      private float xRotation = 0f;
  
      // Start is called before the first frame update
      void Start()
      {
          Cursor.lockState = CursorLockMode.Locked;
      }
  
      // Update is called once per frame
      void Update()
      {
          float mouseX = Input.GetAxis(&quot;Mouse X&quot;) * mouseSensitivity * Time.deltaTime;
          float mouseY = Input.GetAxis(&quot;Mouse Y&quot;) * mouseSensitivity * Time.deltaTime;
  
  
          xRotation -= mouseY;
          xRotation = Mathf.Clamp(xRotation, -90f, 90f);
  
          transform.localRotation = Quaternion.Euler(xRotation, 0f, 0f);
          playerBody.Rotate(Vector3.up * mouseX);
      }
  }
  </code></pre>