Cleanup PointerTracker debug method

Change-Id: Ib3bfa0a46f5814a6df838005d7243e2f536a98a0
main
Tadashi G. Takaoka 2012-06-26 18:36:30 +09:00
parent d522ddefc2
commit d7edd1cbb5
1 changed files with 1 additions and 5 deletions

View File

@ -768,14 +768,10 @@ public class PointerTracker {
callListenerOnRelease(key, code, false);
}
private long mPreviousEventTime;
private void printTouchEvent(String title, int x, int y, long eventTime) {
final Key key = mKeyDetector.detectHitKey(x, y);
final String code = KeyDetector.printableCode(key);
final long delta = eventTime - mPreviousEventTime;
Log.d(TAG, String.format("%s%s[%d] %4d %4d %5d %s", title,
(mKeyAlreadyProcessed ? "-" : " "), mPointerId, x, y, delta, code));
mPreviousEventTime = eventTime;
(mKeyAlreadyProcessed ? "-" : " "), mPointerId, x, y, eventTime, code));
}
}