[PATCH v2] HID: core: Sanitize event code and type when mapping input