I'm trying to rotate my characterController around with the mouse movement. I've tried to do so with this:
rotLeftRight = Input.GetAxis("Mouse X") * MOUSESENSIVITY * Time.deltaTime;
rotUpDown = -Input.GetAxis("Mouse Y") * MOUSESENSIVITY * Time.deltaTime;
It works fine when I just move the mouse, but Input.getAxis returns 0 if you don't move the mouse, even if it's already on a corner of the screen. Is this normal?
What I need is something that returns 0 only when the mouse is in the center of the screen. I don't know if that is posible using Input.GetAxis or I should use another function.
Anybody can help me with this?