scaling the mouse input to fit the screen