Added mouse input support.