Lines Matching refs:touchpad

72         # We try to make the touchpad at least look proportional. The
102 # all corners may be reachable in the touchpad drawing.
113 # all corners may be reachable in the touchpad drawing.
135 print("Move one finger along all edges of the touchpad".center(self.columns))
200 parser = argparse.ArgumentParser(description="Measure the touchpad size")
235 print("Unable to find a touchpad device.", file=sys.stderr)
254 touchpad = Touchpad(evdev)
256 "Kernel specified touchpad size: {:.1f}x{:.1f}mm".format(
257 touchpad.width, touchpad.height
260 print("User specified touchpad size: {:.1f}x{:.1f}mm".format(*args.size))
265 touchpad.x.minimum,
266 touchpad.x.maximum,
267 touchpad.y.minimum,
268 touchpad.y.maximum,
272 print("Put your finger on the touchpad to start\033[1A")
275 touchpad.draw()
279 touchpad.x = event.value
281 touchpad.y = event.value
283 touchpad.draw()
285 touchpad.erase()
286 touchpad.update_from_data()
290 touchpad.x.minimum,
291 touchpad.x.maximum,
292 touchpad.y.minimum,
293 touchpad.y.maximum,
297 touchpad.x.resolution = round(
298 (touchpad.x.maximum - touchpad.x.minimum) / args.size[0]
300 touchpad.y.resolution = round(
301 (touchpad.y.maximum - touchpad.y.minimum) / args.size[1]
306 touchpad.x.resolution, touchpad.y.resolution
314 deviation = 1.5 * touchpad.x.resolution # 1.5 mm rounding on each side
315 skip = between(xorig.minimum, touchpad.x.minimum, deviation)
316 skip = skip and between(xorig.maximum, touchpad.x.maximum, deviation)
317 deviation = 1.5 * touchpad.y.resolution # 1.5 mm rounding on each side
318 skip = skip and between(yorig.minimum, touchpad.y.minimum, deviation)
319 skip = skip and between(yorig.maximum, touchpad.y.maximum, deviation)
354 touchpad.x.minimum if not skip else "",
355 touchpad.x.maximum if not skip else "",
356 touchpad.x.resolution,
361 touchpad.y.minimum if not skip else "",
362 touchpad.y.maximum if not skip else "",
363 touchpad.y.resolution,
369 touchpad.x.minimum if not skip else "",
370 touchpad.x.maximum if not skip else "",
371 touchpad.x.resolution,
376 touchpad.y.minimum if not skip else "",
377 touchpad.y.maximum if not skip else "",
378 touchpad.y.resolution,