Modified to listen to mouse motion/touch