code: def _make_event(self, tv_sec, tv_usec, ev_type, code, value):
          
          event_type = self.manager.get_event_type(ev_type)
          eventinfo = {
              "ev_type": event_type,
              "state": value,
              "timestamp": tv_sec + (tv_usec / 1000000),
              "code": self.manager.get_event_string(event_type, code)
          }
  
          return InputEvent(self, eventinfo)
docs: Create a friendly Python object from an evdev style event.