Keyboard input very slow.

This is on Mac Yosemite using Unity 4.5.5f1 (patch 3)

I have made a small test game where I move a space ship left and right with the following code (In Update() function)

if(Input.GetAxis(“Horizontal”) < -0.1f)
{
MoveLeft()
}

if(Input.GetAxis(“Horizontal”) > 0.1f)
{
MoveRight();
}

When I press the left cursor key it starts moving, but if I keep the key pressed and release it as the ship has moved a bit or almost all of the way it can move, the ship will keep on moving for half a second after I have let go of the cursor key. It will not stop instantly as I let go of the cursor key. If I play with a joystick it will stop instantly.

It’s seems like the keyboard input is being buffered and the buffer is slowly emptying it self.

Is this a bug or a feature of Unity 4.5.5?? It was not like this in earlier versions of unity.

its a feature. You can change this behavior in the Input settings, I think its called dampening or somethink like that or use GetAxisRaw() instead

Was out of the house and was thinking about this and started to wonder if I had seen this before… And now as you mention this, I have seen this before. :slight_smile: Starting the get senile…

Thanks!