change right-button to camera perspective, middle-button to 'scale'
This commit is contained in:
parent
6247cf00a3
commit
28a6954f23
@ -306,15 +306,14 @@ public class GdxMap implements ApplicationListener {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean touchDown(int screenX, int screenY, int pointer, int button) {
|
public boolean touchDown(int screenX, int screenY, int pointer, int button) {
|
||||||
// if (button == Buttons.MIDDLE) {
|
|
||||||
// mActiveScale = true;
|
|
||||||
// // mActiveTilt = true;
|
|
||||||
// mPosY = screenY;
|
|
||||||
// } else
|
|
||||||
if (button == Buttons.MIDDLE) {
|
if (button == Buttons.MIDDLE) {
|
||||||
|
mActiveScale = true;
|
||||||
|
mPosY = screenY;
|
||||||
|
} else if (button == Buttons.RIGHT) {
|
||||||
mActiveRotate = true;
|
mActiveRotate = true;
|
||||||
mPosX = screenX;
|
mPosX = screenX;
|
||||||
mPosY = screenY;
|
mPosY = screenY;
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -348,17 +347,6 @@ public class GdxMap implements ApplicationListener {
|
|||||||
changed = true;
|
changed = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// if (!(mActiveRotate || mActiveTilt || mActiveScale)) {
|
|
||||||
// int dx = screenX - mPosX;
|
|
||||||
// int dy = screenY - mPosY;
|
|
||||||
// if (Math.abs(dx) > 0 || Math.abs(dy) > 0) {
|
|
||||||
// mMapPosition.moveMap(dx, dy);
|
|
||||||
// mPosX = screenX;
|
|
||||||
// mPosY = screenY;
|
|
||||||
// changed = true;
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
if (changed) {
|
if (changed) {
|
||||||
mMapView.updateMap(true);
|
mMapView.updateMap(true);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user