Make sure the Mouse class is initialized before using it.