Lines Matching refs:self
81 def __init__(self, path):
83 self.path = self.find_touch_device()
85 self.path = path
87 fd = open(self.path, "rb")
90 self.udev_device = pyudev.Devices.from_device_file(context, self.path)
92 def find_touch_device(self):
108 def check_property(self):
113 0x00: self.udev_device.get("LIBINPUT_FUZZ_00"),
114 0x01: self.udev_device.get("LIBINPUT_FUZZ_01"),
115 0x35: self.udev_device.get("LIBINPUT_FUZZ_35"),
116 0x36: self.udev_device.get("LIBINPUT_FUZZ_36"),
148 def check_axes(self):
153 if not self.has(libevdev.EV_ABS.ABS_X) or not self.has(libevdev.EV_ABS.ABS_Y):
156 if self.has(libevdev.EV_ABS.ABS_MT_POSITION_X) != self.has(
162 self.absinfo[libevdev.EV_ABS.ABS_X].fuzz
163 or self.absinfo[libevdev.EV_ABS.ABS_MT_POSITION_X].fuzz
166 self.absinfo[libevdev.EV_ABS.ABS_Y].fuzz
167 or self.absinfo[libevdev.EV_ABS.ABS_MT_POSITION_Y].fuzz