Merge "Fix issue #2512131: Trackball goes up when moving"

This commit is contained in:
Dianne Hackborn
2010-03-19 14:01:48 -07:00
committed by Android (Google) Code Review
2 changed files with 8 additions and 2 deletions

View File

@@ -60,6 +60,7 @@ public class PointerLocationView extends View {
public PointerLocationView(Context c) {
super(c);
setFocusable(true);
mVC = ViewConfiguration.get(c);
mTextPaint = new Paint();
mTextPaint.setAntiAlias(true);
@@ -350,4 +351,11 @@ public class PointerLocationView extends View {
addTouchEvent(event);
return true;
}
@Override
public boolean onTrackballEvent(MotionEvent event) {
Log.i("Pointer", "Trackball: " + event);
return super.onTrackballEvent(event);
}
}

View File

@@ -839,8 +839,6 @@ public abstract class KeyInputQueue {
addLocked(di, curTimeNano, ev.flags,
RawInputEvent.CLASS_TRACKBALL, me);
}
ms.finish();
}
}
}