Added mouse capture directive and example program.