summaryrefslogtreecommitdiffstats
path: root/libs/androidfw/InputDevice.cpp
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 /libs/androidfw/InputDevice.cpp
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 'libs/androidfw/InputDevice.cpp')
-rw-r--r--libs/androidfw/InputDevice.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/androidfw/InputDevice.cpp b/libs/androidfw/InputDevice.cpp
index fe891cb..f742052 100644
--- a/libs/androidfw/InputDevice.cpp
+++ b/libs/androidfw/InputDevice.cpp
@@ -172,8 +172,8 @@ void InputDeviceInfo::addSource(uint32_t source) {
}
void InputDeviceInfo::addMotionRange(int32_t axis, uint32_t source, float min, float max,
- float flat, float fuzz) {
- MotionRange range = { axis, source, min, max, flat, fuzz };
+ float flat, float fuzz, float resolution) {
+ MotionRange range = { axis, source, min, max, flat, fuzz, resolution };
mMotionRanges.add(range);
}