From d619da633517175ffa6977a80760673628f91583 Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Wed, 16 Feb 2011 18:20:14 +0100 Subject: Add velocity estimate The per-touch velocity is useful in many contexts. This patch adds a simple estimator of the velocity, which also smooths out position jumps caused by course-grained event updates. Signed-off-by: Henrik Rydberg --- tools/common-defs.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools') diff --git a/tools/common-defs.h b/tools/common-defs.h index 0e08bc5..e435f72 100644 --- a/tools/common-defs.h +++ b/tools/common-defs.h @@ -72,6 +72,8 @@ static void report_frame(const struct utouch_frame *frame) fprintf(stderr, " angle: %f\n", t->orientation); fprintf(stderr, " pressure: %f\n", t->pressure); fprintf(stderr, " distance: %f\n", t->distance); + fprintf(stderr, " vx: %f\n", t->vx); + fprintf(stderr, " vy: %f\n", t->vy); } fprintf(stderr, "sync %d %ld %d %d %d\n", -- cgit v1.2.3