Added mouse motion support