Merge _nosleep with the main mouse function.