diff options
author | 2015-12-03 01:14:46 -0800 | |
---|---|---|
committer | 2015-12-18 10:00:05 -0800 | |
commit | fa1706afaf12b48fe0ab6d4b061b614bf901b173 (patch) | |
tree | d469b20f7b3e57b79f74b90c951891a019c2bf2d /services/inputflinger/InputDispatcher.cpp | |
parent | 79a27adb5a5993a72d2c77f9ca692bfc57baf22c (diff) |
Add relative-x/y axis for mouse devices.
Used by Ie21e521f3e5c581f976dc0feb5d84bfa48b046cd.
Bug: 5452473
Change-Id: I4189eb4d93f50c2865b7a325727be5ceebcc71f8
Diffstat (limited to 'services/inputflinger/InputDispatcher.cpp')
-rw-r--r-- | services/inputflinger/InputDispatcher.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/services/inputflinger/InputDispatcher.cpp b/services/inputflinger/InputDispatcher.cpp index 0fba1bf3e4..04919f723f 100644 --- a/services/inputflinger/InputDispatcher.cpp +++ b/services/inputflinger/InputDispatcher.cpp @@ -902,7 +902,7 @@ void InputDispatcher::logOutboundMotionDetailsLocked(const char* prefix, const M ALOGD(" Pointer %d: id=%d, toolType=%d, " "x=%f, y=%f, pressure=%f, size=%f, " "touchMajor=%f, touchMinor=%f, toolMajor=%f, toolMinor=%f, " - "orientation=%f", + "orientation=%f, relativeX=%f, relativeY=%f", i, entry->pointerProperties[i].id, entry->pointerProperties[i].toolType, entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_X), @@ -913,7 +913,9 @@ void InputDispatcher::logOutboundMotionDetailsLocked(const char* prefix, const M entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR), entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOOL_MAJOR), entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOOL_MINOR), - entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_ORIENTATION)); + entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_ORIENTATION), + entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X), + entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_RELATIVE_Y)); } #endif } |