Put input delegate templates away from the mouse class.
Added transforms (needs heavy testing).