When I choose a quality setting (e.g. simple) in which VSync is disabled, the alternate (360 pad) right thumbstick - which is otherwise recognized quite well by the stock MouseLook - suddenly becomes very sensitive, causing rapid spins. The mouse, however, still works the same. I’m assuming the extra frames are causing extra detections due to the continuous nature of thumbstick input. Below is a screenshot of my thumbstick settings (the original Mouse X and Y are still there as well). I’d certainly appreciate any input (no pun intended).
Also, is there a way to reorder the input list? It’s rather inconvenient for my new interact key to be at the bottom of the input list, below the joystick bindings.
I don’t have a controller to test this, but i’m pretty sure that a joystick has absolute values which a mouse is a delta-movement device. The mouse axis returns the movement that has been done in the last frame. A joystick returns a constant value which tells you how much it’s tilted.
I would handle those two inputs seperately. Create another input axis, add it to the movment script and use deltaTime for the joystick.
So it would look like this:
rotationY += Input.GetAxis("Mouse Y") * sensitivityY;
rotationY += Input.GetAxis("Joystick Y") * sensitivityY * Time.deltaTime;
rotationY = Mathf.Clamp (rotationY, minimumY, maximumY);
You might want a seperate sensitivity value, but if you use only one input an a time, it doesn’t matter (as long as the user can configure it ).