summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2010-07-30 19:20:11 -0700
committerJeff Brown <jeffbrown@google.com>2010-07-30 20:08:29 -0700
commit9e2ad36be87f2703b3d737189944d82f93bd4f27 (patch)
tree409280a29fa2d12b395e5f6faa0e3e375d7af1b3 /include
parent543f250d9cb05ebca4fb4dacce37545c0bb9a8ca (diff)
downloadframeworks_base-9e2ad36be87f2703b3d737189944d82f93bd4f27.zip
frameworks_base-9e2ad36be87f2703b3d737189944d82f93bd4f27.tar.gz
frameworks_base-9e2ad36be87f2703b3d737189944d82f93bd4f27.tar.bz2
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
Diffstat (limited to 'include')
-rw-r--r--include/ui/InputReader.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/ui/InputReader.h b/include/ui/InputReader.h
index 6bf1bfa..f162231 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];
}
}