Add new Window.Callback.dispatchGenericMotionEvent to adapter class

Change-Id: I7571da1d00c22d96f2fb0f9b2e8a2c84a9344c81
This commit is contained in:
Tadashi G. Takaoka 2011-01-25 12:39:13 +09:00
parent d13b49d1a4
commit 03886cf96a

View file

@ -34,6 +34,13 @@ public class WindowCallbackAdapter implements Window.Callback {
mPreviousCallback = previousCallback;
}
@Override
public boolean dispatchGenericMotionEvent(MotionEvent event) {
if (mPreviousCallback != null)
return mPreviousCallback.dispatchGenericMotionEvent(event);
return false;
}
@Override
public boolean dispatchKeyEvent(KeyEvent event) {
if (mPreviousCallback != null)