We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c2c4e7 commit a1f9426Copy full SHA for a1f9426
FreeLook.cs
@@ -48,13 +48,13 @@ void Start()
48
49
void Update()
50
{
51
- yaw += turnSpeedH * Input.GetAxis("Mouse X");
52
- pitch -= turnSpeedV * Input.GetAxis("Mouse Y");
+ yaw += turnSpeedH * Input.GetAxisRaw("Mouse X");
+ pitch -= turnSpeedV * Input.GetAxisRaw("Mouse Y");
53
54
transform.eulerAngles = new Vector3(pitch, yaw, 0.0f);
55
56
- inputH = Input.GetAxis("Horizontal");
57
- inputV = Input.GetAxis("Vertical");
+ inputH = Input.GetAxisRaw("Horizontal");
+ inputV = Input.GetAxisRaw("Vertical");
58
59
Vector3 moveDirection = (transform.forward * inputV + inputH * transform.right).normalized;
60
0 commit comments