summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2011-02-19 05:07:28 -0800
committerJeff Brown <jeffbrown@google.com>2011-02-19 06:14:21 -0800
commitcc0c159e9b3dd4e0f48da0ce3e33d2c68a651413 (patch)
tree7a4e3c578e3e0f2c01fef4d64e721d81c851748e /libs
parent6f2fba428ca5e77a26d991ad728e346cc47609ee (diff)
downloadframeworks_base-cc0c159e9b3dd4e0f48da0ce3e33d2c68a651413.zip
frameworks_base-cc0c159e9b3dd4e0f48da0ce3e33d2c68a651413.tar.gz
frameworks_base-cc0c159e9b3dd4e0f48da0ce3e33d2c68a651413.tar.bz2
Add new hover move action and scroll wheel plumbing.
Added support for tracking the mouse position even when the mouse button is not pressed. To avoid confusing existing applications, mouse movements are reported using the new ACTION_HOVER_MOVE action when the mouse button is not pressed. Added some more plumbing for the scroll wheel axes. The values are reported to Views but they are not yet handled by the framework. Change-Id: I1706be850d25cf34e5adf880bbed5cc3265cf4b1
Diffstat (limited to 'libs')
-rw-r--r--libs/ui/InputTransport.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/ui/InputTransport.cpp b/libs/ui/InputTransport.cpp
index 83d9556..5c57a76 100644
--- a/libs/ui/InputTransport.cpp
+++ b/libs/ui/InputTransport.cpp
@@ -412,7 +412,8 @@ status_t InputPublisher::publishMotionEvent(
// Cache essential information about the motion event to ensure that a malicious consumer
// cannot confuse the publisher by modifying the contents of the shared memory buffer while
// it is being updated.
- if (action == AMOTION_EVENT_ACTION_MOVE) {
+ if (action == AMOTION_EVENT_ACTION_MOVE
+ || action == AMOTION_EVENT_ACTION_HOVER_MOVE) {
mMotionEventPointerCount = pointerCount;
mMotionEventSampleDataStride = InputMessage::sampleDataStride(pointerCount);
mMotionEventSampleDataTail = InputMessage::sampleDataPtrIncrement(