Extract checkMouseState