示例#1
0
static bool
tp_tap_exceeds_motion_threshold(struct tp_dispatch *tp,
				struct tp_touch *t)
{
	struct phys_coords mm =
		tp_phys_delta(tp, device_delta(t->point, t->tap.initial));

	return length_in_mm(mm) > DEFAULT_TAP_MOVE_THRESHOLD;
}
示例#2
0
static bool
tp_tap_exceeds_motion_threshold(struct tp_dispatch *tp,
				struct tp_touch *t)
{
	struct normalized_coords norm =
		tp_normalize_delta(tp, device_delta(t->point,
						    t->tap.initial));

	return normalized_length(norm) > DEFAULT_TAP_MOVE_THRESHOLD;
}