Mouse auto-detection