Optimized mouse support.