Change UIEvent eventCodes from int to enum