Added mouse/touch support.