code: def _make_event(self, event_type, code, value):
          
          secs, msecs = convert_timeval(time.time())
          data = struct.pack(EVENT_FORMAT,
                             secs,
                             msecs,
                             event_type,
                             code,
                             value)
          self._write_device.write(data)
          self._write_device.flush()
docs: Make a new event and send it to the character device.