Detect mouse movement

Hmmm, I cannot come up with a code to do what i want here. I’m not a begginer but i just can’t figure this one out, can anyone help with the idea ? I want to detect how fast the mouse is moving and then transfer the speed to a value from 0 to 1, and then the animation of turning around will be played with the speed we got. So basically i’m trying to make the character realistically turn around when i rotate him with the mouse. What’s silly is that i’ve came up with a code for this before and i lost it. Thanks in advance.

Nevermind. Forgot that “Mouse X” axis exists.