Lines Matching refs:pressure
103 def __init__(self, pressure=None):
104 self.pressure = pressure
129 self.prange.update(touch.pressure)
131 if touch.pressure < self.device.up:
133 elif touch.pressure > self.device.down:
137 self.is_palm = touch.pressure > self.device.palm
141 self.is_thumb = touch.pressure > self.device.thumb
150 """Average pressure value of this sequence"""
151 return int(sum([p.pressure for p in self.points]) / len(self.points))
154 """Median pressure value of this sequence"""
155 ps = sorted([p.pressure for p in self.points])
171 "No pressure values recorded",
202 self.points[-1].pressure,
319 s.append(Touch(pressure=event.value))
336 print("Place a single finger on the touchpad to measure pressure values.")
343 print("with --touch-thresholds=down:up using observed pressure values.")
377 parser = argparse.ArgumentParser(description="Measure touchpad pressure values")
426 "This device does not have the capabilities for pressure-based touch detection."