summaryrefslogtreecommitdiffstats
path: root/include/androidfw
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 /include/androidfw
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 'include/androidfw')
-rw-r--r--include/androidfw/InputDevice.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/androidfw/InputDevice.h b/include/androidfw/InputDevice.h
index 1aecf80..45dc2db 100644
--- a/include/androidfw/InputDevice.h
+++ b/include/androidfw/InputDevice.h
@@ -64,6 +64,7 @@ public:
float max;
float flat;
float fuzz;
+ float resolution;
};
void initialize(int32_t id, int32_t generation, const InputDeviceIdentifier& identifier,
@@ -83,7 +84,7 @@ public:
void addSource(uint32_t source);
void addMotionRange(int32_t axis, uint32_t source,
- float min, float max, float flat, float fuzz);
+ float min, float max, float flat, float fuzz, float resolution);
void addMotionRange(const MotionRange& range);
inline void setKeyboardType(int32_t keyboardType) { mKeyboardType = keyboardType; }