From 511ee5f89fad45bd0456b1335b745f2b8d87641b Mon Sep 17 00:00:00 2001 From: Jeff Brown Date: Mon, 18 Oct 2010 13:32:20 -0700 Subject: 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 --- include/ui/InputReader.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include/ui/InputReader.h') diff --git a/include/ui/InputReader.h b/include/ui/InputReader.h index eb88d8bf670c..2d4bf8bb1587 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, -- cgit v1.2.3-59-g8ed1b