rewrote mouse detection code lowered min_conf