Added mouse processing framework