summaryrefslogtreecommitdiffstats
path: root/include/ui/EventHub.h
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2010-08-30 03:02:23 -0700
committerJeff Brown <jeffbrown@google.com>2010-08-30 18:16:43 -0700
commit8d60866e2100db70ecf0502c14768a384514d7e9 (patch)
tree514e46b4e4d58fd68cd52de93b93e7782fdf4e9f /include/ui/EventHub.h
parentbb660d7e1bed3a07a1804bd9641d9634bfaa4972 (diff)
downloadframeworks_base-8d60866e2100db70ecf0502c14768a384514d7e9.zip
frameworks_base-8d60866e2100db70ecf0502c14768a384514d7e9.tar.gz
frameworks_base-8d60866e2100db70ecf0502c14768a384514d7e9.tar.bz2
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
Diffstat (limited to 'include/ui/EventHub.h')
-rw-r--r--include/ui/EventHub.h8
1 files changed, 8 insertions, 0 deletions
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;
+ }
};
/*