def dispatch_events(self, dt=None): # dt HACK
        if not self._fileno:
            return

        events = (input_event * 64)()
        bytes = c.read(self._fileno, events, ctypes.sizeof(events))
        n_events = bytes // ctypes.sizeof(input_event)
        for event in events[:n_events]:
            try:
                element = self.element_map[(event.type, event.code)]
                element.value = event.value
            except __HOLE__:
                pass
dataset/ETHPy150Open ardekantur/pyglet/experimental/input/linux.py/Device.dispatch_events