Home | History | Annotate | Download | only in input

Lines Matching refs:ev_type

158         self.events = {}     # dict { ev_type : dict { ev_code : Valuator } }
256 def _ioctl_codes(self, ev_type):
260 self.events[ev_type] = {}
261 if ev_type not in EV_SIZES:
264 size = EV_SIZES[ev_type] / 8 # Convert bits to bytes
267 count = fcntl.ioctl(self.f, EVIOCGBIT(ev_type, size), ev_code, 1)
270 if ev_type == EV_ABS:
271 self.events[ev_type][c] = self._ioctl_absinfo(c)
272 elif ev_type == EV_SW:
273 self.events[ev_type][c] = self._ioctl_get_switch(c)
275 self.events[ev_type][c] = Valuator()