libevdev_event_type_get_max
int libevdev_event_type_get_max(unsigned int type);
code < 0 || code > libevdev_event_type_get_max(type))