Add mouse directive.