Added check before using mouse support.