diff options
| author | 2011-06-06 20:03:18 -0700 | |
|---|---|---|
| committer | 2011-06-06 20:06:19 -0700 | |
| commit | cb5ffcf0e41d2597401208221c61589547a00f3d (patch) | |
| tree | b418a886481f1c5fb0b392c016c1a38cd0f6ce7b /services/input/PointerController.cpp | |
| parent | bb3fcba0caf697f1d238a2cbefdf1efe06eded99 (diff) | |
Simplify spot tracking logic.
Bug: 4124987
Since spots are now one-to-one with the touch gesture points,
we can eliminate a lot of redundant logic that assumed they weren't.
Change-Id: Ic60d8d0898c285317f480bc8fb17fb9797770e69
Diffstat (limited to 'services/input/PointerController.cpp')
| -rw-r--r-- | services/input/PointerController.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/services/input/PointerController.cpp b/services/input/PointerController.cpp index eecb76fa4bab..5e7713a2e559 100644 --- a/services/input/PointerController.cpp +++ b/services/input/PointerController.cpp @@ -240,15 +240,15 @@ void PointerController::setPresentation(Presentation presentation) { } } -void PointerController::setSpots(SpotGesture spotGesture, - const PointerCoords* spotCoords, const uint32_t* spotIdToIndex, BitSet32 spotIdBits) { +void PointerController::setSpots(const PointerCoords* spotCoords, + const uint32_t* spotIdToIndex, BitSet32 spotIdBits) { #if DEBUG_POINTER_UPDATES - LOGD("setSpots: spotGesture=%d", spotGesture); + LOGD("setSpots: idBits=%08x", spotIdBits.value); for (BitSet32 idBits(spotIdBits); !idBits.isEmpty(); ) { uint32_t id = idBits.firstMarkedBit(); idBits.clearBit(id); const PointerCoords& c = spotCoords[spotIdToIndex[id]]; - LOGD(" spot %d: position=(%0.3f, %0.3f), pressure=%0.3f", id, + LOGD(" spot %d: position=(%0.3f, %0.3f), pressure=%0.3f", id, c.getAxisValue(AMOTION_EVENT_AXIS_X), c.getAxisValue(AMOTION_EVENT_AXIS_Y), c.getAxisValue(AMOTION_EVENT_AXIS_PRESSURE)); |