summaryrefslogtreecommitdiffstats
path: root/include/ui/InputReader.h
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2010-10-18 13:32:20 -0700
committerJeff Brown <jeffbrown@google.com>2010-10-18 17:24:49 -0700
commit511ee5f89fad45bd0456b1335b745f2b8d87641b (patch)
tree047740e6909b164a3efbd34578c658dcec846afd /include/ui/InputReader.h
parent1b04ed793a64ff1bf3cd2b71bee1fdfb228b44fe (diff)
downloadframeworks_base-511ee5f89fad45bd0456b1335b745f2b8d87641b.zip
frameworks_base-511ee5f89fad45bd0456b1335b745f2b8d87641b.tar.gz
frameworks_base-511ee5f89fad45bd0456b1335b745f2b8d87641b.tar.bz2
Add support for calibrating touch position.
Useful for tweaking touch screen alignment without having to modify the kernel device driver x/y axis bounds. Change-Id: I6ca43d3c138548f9dfb76aa33150a0c853698fb6
Diffstat (limited to 'include/ui/InputReader.h')
-rw-r--r--include/ui/InputReader.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/ui/InputReader.h b/include/ui/InputReader.h
index eb88d8b..2d4bf8b 100644
--- a/include/ui/InputReader.h
+++ b/include/ui/InputReader.h
@@ -584,6 +584,16 @@ protected:
// Immutable calibration parameters in parsed form.
struct Calibration {
+ // Position
+ bool haveXOrigin;
+ int32_t xOrigin;
+ bool haveYOrigin;
+ int32_t yOrigin;
+ bool haveXScale;
+ float xScale;
+ bool haveYScale;
+ float yScale;
+
// Touch Size
enum TouchSizeCalibration {
TOUCH_SIZE_CALIBRATION_DEFAULT,