From 8d60866e2100db70ecf0502c14768a384514d7e9 Mon Sep 17 00:00:00 2001 From: Jeff Brown Date: Mon, 30 Aug 2010 03:02:23 -0700 Subject: Input device calibration and capabilities. Finished the input device capability API. Added a mechanism for calibrating touch devices to obtain more accurate information about the touch contact area. Improved pointer location to show new coordinates and capabilities. Optimized pointer location display and formatting to avoid allocating large numbers of temporary objects. The GC churn was causing the application to stutter very badly when more than a couple of fingers were down). Added more diagnostics. Change-Id: Ie25380278ed6f16c5b04cd9df848015850383498 --- include/ui/EventHub.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/ui/EventHub.h') diff --git a/include/ui/EventHub.h b/include/ui/EventHub.h index 3d42856..25d5afb 100644 --- a/include/ui/EventHub.h +++ b/include/ui/EventHub.h @@ -82,6 +82,14 @@ struct RawAbsoluteAxisInfo { int32_t fuzz; // error tolerance, eg. fuzz == 4 means value is +/- 4 due to noise inline int32_t getRange() { return maxValue - minValue; } + + inline void clear() { + valid = false; + minValue = 0; + maxValue = 0; + flat = 0; + fuzz = 0; + } }; /* -- cgit v1.1