Lines Matching refs:device
103 def __init__(self, device, tracking_id):
104 self.device = device
126 if touch.major < self.device.up or touch.minor < self.device.up:
128 elif touch.major > self.device.down or touch.minor > self.device.down:
132 self.is_palm = touch.major > self.device.palm
136 self.is_thumb = self.device.thumb != 0 and touch.major > self.device.thumb
154 if self.device.has_minor:
211 for device in context.list_devices(subsystem="input"):
212 if not device.get("ID_INPUT_TOUCHPAD", 0) and not device.get(
217 if not device.device_node or not device.device_node.startswith(
222 return device.device_node
224 print("Unable to find a touch device.", file=sys.stderr)
313 "Place a single finger on the device to measure touch size.\n"
342 help="Path to device (optional)",
359 device = Device(args.path)
362 device.down, device.up = args.touch_thresholds
365 device.palm = args.palm_threshold
367 device.read_events()
371 print("Error: failed to open device")
374 "This device does not have the capabilities for size-based touch detection."