Make the mousemotion store the mouse position in the Mouse namespace