summaryrefslogtreecommitdiffstats
path: root/services/input/InputReader.h
diff options
context:
space:
mode:
authorMichael Wright <michaelwr@google.com>2013-04-01 20:56:04 -0700
committerMichael Wright <michaelwr@google.com>2013-04-04 18:10:37 -0700
commitc6091c64c90e9557ea58e0d7cf75915aea7c6c3e (patch)
treef5f69d5bbd0270d7a1b7564920e6f31f381704cd /services/input/InputReader.h
parent77d94957d793aba16a1352d25d5555bf59fe74e7 (diff)
downloadframeworks_base-c6091c64c90e9557ea58e0d7cf75915aea7c6c3e.zip
frameworks_base-c6091c64c90e9557ea58e0d7cf75915aea7c6c3e.tar.gz
frameworks_base-c6091c64c90e9557ea58e0d7cf75915aea7c6c3e.tar.bz2
Pipe through device resolution information
Bug: 8424494 Change-Id: Iafeeee0d5cd29342c1cdc86b9616222aaa5d1b94
Diffstat (limited to 'services/input/InputReader.h')
-rw-r--r--services/input/InputReader.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/services/input/InputReader.h b/services/input/InputReader.h
index c596b37..8a52c06 100644
--- a/services/input/InputReader.h
+++ b/services/input/InputReader.h
@@ -1730,10 +1730,11 @@ private:
float highScale; // scale factor from raw to normalized values of high split
float highOffset; // offset to add after scaling for normalization of high split
- float min; // normalized inclusive minimum
- float max; // normalized inclusive maximum
- float flat; // normalized flat region size
- float fuzz; // normalized error tolerance
+ float min; // normalized inclusive minimum
+ float max; // normalized inclusive maximum
+ float flat; // normalized flat region size
+ float fuzz; // normalized error tolerance
+ float resolution; // normalized resolution in units/mm
float filter; // filter out small variations of this size
float currentValue; // current value
@@ -1744,7 +1745,7 @@ private:
void initialize(const RawAbsoluteAxisInfo& rawAxisInfo, const AxisInfo& axisInfo,
bool explicitlyMapped, float scale, float offset,
float highScale, float highOffset,
- float min, float max, float flat, float fuzz) {
+ float min, float max, float flat, float fuzz, float resolution) {
this->rawAxisInfo = rawAxisInfo;
this->axisInfo = axisInfo;
this->explicitlyMapped = explicitlyMapped;
@@ -1756,6 +1757,7 @@ private:
this->max = max;
this->flat = flat;
this->fuzz = fuzz;
+ this->resolution = resolution;
this->filter = 0;
resetValue();
}