moved MouseType enum into the class