Merge "Fix issue #2512131: Trackball goes up when moving"
This commit is contained in:
committed by
Android (Google) Code Review
commit
379232c8f5
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -839,8 +839,6 @@ public abstract class KeyInputQueue {
|
||||
addLocked(di, curTimeNano, ev.flags,
|
||||
RawInputEvent.CLASS_TRACKBALL, me);
|
||||
}
|
||||
|
||||
ms.finish();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user