Fix issue #2512131: Trackball goes up when moving

Change-Id: Ib403de88f24bc1b6e5417732e3b69f89a5160bbc
This commit is contained in:
Dianne Hackborn
2010-03-18 23:40:21 -07:00
parent b58fd82261
commit 7d9af5ae76
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();
}
}
}