move fling gesture detector to MapEventLayer

This commit is contained in:
Hannes Janetzek
2013-07-08 11:48:35 +02:00
parent 4d9d678669
commit 7229d8d596
6 changed files with 212 additions and 67 deletions

View File

@@ -2,7 +2,10 @@ package org.oscim.gdx;
import org.oscim.backend.input.MotionEvent;
public class GdxMotionEvent extends MotionEvent {
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.InputProcessor;
public class GdxMotionEvent extends MotionEvent implements InputProcessor{
@Override
public int getAction() {
@@ -34,4 +37,50 @@ public class GdxMotionEvent extends MotionEvent {
return 0;
}
@Override
public long getTime() {
return 0;
}
// -------- InputProcessor ----------
@Override
public boolean keyDown(int keycode) {
return false;
}
@Override
public boolean keyUp(int keycode) {
return false;
}
@Override
public boolean keyTyped(char character) {
return false;
}
@Override
public boolean touchDown(int screenX, int screenY, int pointer, int button) {
return false;
}
@Override
public boolean touchUp(int screenX, int screenY, int pointer, int button) {
return false;
}
@Override
public boolean touchDragged(int screenX, int screenY, int pointer) {
return false;
}
@Override
public boolean mouseMoved(int screenX, int screenY) {
return false;
}
@Override
public boolean scrolled(int amount) {
return false;
}
}