From c6091c64c90e9557ea58e0d7cf75915aea7c6c3e Mon Sep 17 00:00:00 2001 From: Michael Wright Date: Mon, 1 Apr 2013 20:56:04 -0700 Subject: Pipe through device resolution information Bug: 8424494 Change-Id: Iafeeee0d5cd29342c1cdc86b9616222aaa5d1b94 --- include/androidfw/InputDevice.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/androidfw') 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; } -- cgit v1.1