Getaxisraw work on mac but not on windows!

Hi there,

I’m not new to Unity3D even if I’m not an expert… sometimes I grab some C# snippet all around the web and this time I’ve found a code that works properly on Mac (both Editor and Player) but not working at all on Windows (I tested Player only). Why in the world there must be a difference between these two OS for a such basic Unity function like GetAxisRaw O_O !!! Thank you for any suggestion… any!
Dan.

var md = new Vector2(Input.GetAxisRaw("Mouse X"), Input.GetAxisRaw("Mouse Y"));

            md = Vector2.Scale(md, new Vector2(sensitivity * smoothing, sensitivity * smoothing));
            smoothV.x = Mathf.Lerp(smoothV.x, md.x, 1.0f / smoothing);
            smoothV.y = Mathf.Lerp(smoothV.y, md.y, 1.0f / smoothing);
            mouseLook += smoothV;
            mouseLook.y = Mathf.Clamp(mouseLook.y, -90.0f, 90.0f);

            transform.localRotation = Quaternion.AngleAxis(-mouseLook.y, Vector3.right);
            character.transform.localRotation = Quaternion.AngleAxis(mouseLook.x, character.transform.up);

good news… it seems that the problem is about Windows 10 running on Parallel Desktop 13 only.
I’ve installed my Unity exe on a physical Windows PC and everything works exactly like on Mac.

good to know :smile:

I’m glad you were able to figure this out.