Added support for mouse movements.