pub const fn int_to_event_type(code: u32) -> Option<EventType>