that amount you multiply it by, you can set that to how much the mouse moved instead of just if its moving. you can find that by storing a variable in event tick to the mouse position (do this all the way at the end). and before that, subtract current mouse position from that variable