Fix issue #2512131: Trackball goes up when moving
Change-Id: Ib403de88f24bc1b6e5417732e3b69f89a5160bbc
This commit is contained in:
@@ -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