Added proper type casting to wxMouseState.