Added direction summation of mouse movements