Lines Matching refs:touch
101 """A touch sequence from beginning to end"""
120 def append(self, touch):
122 self.points.append(touch)
123 self.major_range.update(touch.major)
124 self.minor_range.update(touch.minor)
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
168 touch = self.points[-1]
170 touch,
207 self.touch = Touch(0, 0)
224 print("Unable to find a touch device.", file=sys.stderr)
280 self.touch.major = event.value
282 self.touch.minor = event.value
284 self.touch.orientation = event.value
287 if self.touch.dirty:
289 self.current_sequence().append(self.touch)
291 self.touch = Touch(
292 major=self.touch.major,
293 minor=self.touch.minor,
294 orientation=self.touch.orientation,
313 "Place a single finger on the device to measure touch size.\n"
336 parser = argparse.ArgumentParser(description="Measure touch size and orientation")
345 "--touch-thresholds",
348 help="Thresholds when a touch is logically down or up",
354 help="Threshold when a touch is a palm",
374 "This device does not have the capabilities for size-based touch detection."