From f634ded277f246bd9568e9b7dcad40790767c6ab Mon Sep 17 00:00:00 2001 From: "makarand.karvekar" Date: Wed, 2 Mar 2011 15:41:03 -0600 Subject: Set last event time to previous event batch delivery time to apps Determination of the last event time. Currently, uses the time that the first event in the previous batch that was sent from hardware. This produces inconsistent timing intervals for event delivery to apps. Now, use the time that the previous batch was delivered to the application. Original Author: Stephen Moore Signed-off-by: makarand.karvekar Change-Id: I2a3701915702d622dc04fbf4bbd4918a9ebe8856 --- services/input/InputDispatcher.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'services') diff --git a/services/input/InputDispatcher.cpp b/services/input/InputDispatcher.cpp index 0606307..e614e81 100644 --- a/services/input/InputDispatcher.cpp +++ b/services/input/InputDispatcher.cpp @@ -354,8 +354,7 @@ void InputDispatcher::dispatchOnceInnerLocked(nsecs_t keyRepeatTimeout, } #endif - mThrottleState.lastEventTime = entry->eventTime < currentTime - ? entry->eventTime : currentTime; + mThrottleState.lastEventTime = currentTime; mThrottleState.lastDeviceId = deviceId; mThrottleState.lastSource = source; } -- cgit v1.1