From b183fbd6460e6ebb7ffc568ec38ab1548dac0065 Mon Sep 17 00:00:00 2001 From: Jeff Brown Date: Fri, 30 Jul 2010 19:20:11 -0700 Subject: [PATCH] Enhanced VelocityTracker for > 5 pointers and fixed bugs. Improved PointerLocation tool to use VelocityTracker more efficiently and correctly when multiple pointers are down. Fixed a bug in TouchInputMapper where it was not correctly copying the id to index map in the last touch data. This could cause strange behavior on secondary pointer up events. Also added finished callback pooling in InputQueue. Change-Id: Ia85e52ac2fb7350960ea1d7edfbe81a1b3e8267b --- include/ui/InputReader.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/ui/InputReader.h b/include/ui/InputReader.h index 6bf1bfaeb..f1622316f 100644 --- a/include/ui/InputReader.h +++ b/include/ui/InputReader.h @@ -565,7 +565,9 @@ protected: for (uint32_t i = 0; i < pointerCount; i++) { pointers[i] = other.pointers[i]; - idToIndex[i] = other.idToIndex[i]; + + int id = pointers[i].id; + idToIndex[id] = other.idToIndex[id]; } }