ImmediateInterpreter: Fix TapRecord T5R2 situation detection.

If three fingers on a T5R2 pad, and one is removd, we often see a
frame with no fingers, but with positive touch count, then a frame
with 2 fingers and touch count of 2. Previously, this latter frame
would look like two added fingers, but we can tell, from the previous
frame, that that is not the case, and we are instead only having
fingers removed, not added.

BUG=chromium-os:25718
TEST=unittest; replayed problematic log and saw fix; tested on device.

Change-Id: Id580663e7304b8d95a00db5e7014a02487400cc9
2 files changed
tree: 6f5702ada27f1cbe10078eb30f225c3bd56c500a
  1. include/
  2. keyboard_touchpad_helper/
  3. src/
  4. tools/
  5. .gitignore
  6. LICENSE
  7. Makefile