summaryrefslogtreecommitdiff
path: root/libs/ui/InputReader.cpp
diff options
context:
space:
mode:
author Jeff Brown <jeffbrown@google.com> 2010-07-16 17:21:06 -0700
committer Jeff Brown <jeffbrown@google.com> 2010-07-16 17:46:03 -0700
commitf26db0d6c55ff572f8772498c5d845ade7c6e8b8 (patch)
tree360ccca5228cc418f7667d6a671666deb73f0e10 /libs/ui/InputReader.cpp
parent9b242faf8b76049aa8cd76f1113c01a92c311e27 (diff)
Fix trackball down and movement bugs.
Bug: 2823788 Change-Id: Icb0c392b58f7e735614460b5eb87439cb73ac4f2
Diffstat (limited to 'libs/ui/InputReader.cpp')
-rw-r--r--libs/ui/InputReader.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/ui/InputReader.cpp b/libs/ui/InputReader.cpp
index 403afe7601..30e391ff61 100644
--- a/libs/ui/InputReader.cpp
+++ b/libs/ui/InputReader.cpp
@@ -270,6 +270,10 @@ void InputReader::handleKey(const RawEvent* rawEvent) {
device->trackball.accumulator.fields |=
InputDevice::TrackballState::Accumulator::FIELD_BTN_MOUSE;
device->trackball.accumulator.btnMouse = down;
+
+ // Process the trackball change now since we may not receive a sync immediately.
+ onTrackballStateChanged(rawEvent->when, device);
+ device->trackball.accumulator.clear();
return;
}
}