Add new Window.Callback.dispatchGenericMotionEvent to adapter class

Change-Id: I7571da1d00c22d96f2fb0f9b2e8a2c84a9344c81
main
Tadashi G. Takaoka 2011-01-25 12:39:13 +09:00
parent d13b49d1a4
commit 03886cf96a
1 changed files with 7 additions and 0 deletions

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)