Mouse "walking"

Using int insted of double helps keep conversion and subtraction a few
lines below accurate. Using double in some cases couse to cursor
"walking" when cursorMode == DISABLED . Tested.