Loading libs/input/VelocityControl.cpp +4 −2 Original line number Original line Diff line number Diff line Loading @@ -53,8 +53,10 @@ void VelocityControl::move(nsecs_t eventTime, float* deltaX, float* deltaY) { if ((deltaX && *deltaX) || (deltaY && *deltaY)) { if ((deltaX && *deltaX) || (deltaY && *deltaY)) { if (eventTime >= mLastMovementTime + STOP_TIME) { if (eventTime >= mLastMovementTime + STOP_TIME) { #if DEBUG_ACCELERATION #if DEBUG_ACCELERATION if (mLastMovementTime != LLONG_MIN) { ALOGD("VelocityControl: stopped, last movement was %0.3fms ago", ALOGD("VelocityControl: stopped, last movement was %0.3fms ago", (eventTime - mLastMovementTime) * 0.000001f); (eventTime - mLastMovementTime) * 0.000001f); } #endif #endif reset(); reset(); } } Loading Loading
libs/input/VelocityControl.cpp +4 −2 Original line number Original line Diff line number Diff line Loading @@ -53,8 +53,10 @@ void VelocityControl::move(nsecs_t eventTime, float* deltaX, float* deltaY) { if ((deltaX && *deltaX) || (deltaY && *deltaY)) { if ((deltaX && *deltaX) || (deltaY && *deltaY)) { if (eventTime >= mLastMovementTime + STOP_TIME) { if (eventTime >= mLastMovementTime + STOP_TIME) { #if DEBUG_ACCELERATION #if DEBUG_ACCELERATION if (mLastMovementTime != LLONG_MIN) { ALOGD("VelocityControl: stopped, last movement was %0.3fms ago", ALOGD("VelocityControl: stopped, last movement was %0.3fms ago", (eventTime - mLastMovementTime) * 0.000001f); (eventTime - mLastMovementTime) * 0.000001f); } #endif #endif reset(); reset(); } } Loading