some event mechanism

This commit is contained in:
Hannes Janetzek
2013-09-13 14:41:14 +02:00
parent 5389f59df0
commit 4e01de31f7
21 changed files with 405 additions and 144 deletions

View File

@@ -219,7 +219,7 @@ public class MapView extends RelativeLayout {
mPausing = false;
}
AndroidMotionEvent mMotionEvent = new AndroidMotionEvent();
AndroidMotionEvent mMotionEvent = new AndroidMotionEvent(this);
@Override
public boolean onTouchEvent(android.view.MotionEvent motionEvent) {
@@ -228,8 +228,9 @@ public class MapView extends RelativeLayout {
return false;
mMotionEvent.wrap(motionEvent);
mMap.handleMotionEvent(mMotionEvent);
return mMap.getLayers().handleMotionEvent(mMotionEvent);
return true;
}
// synchronized ???