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
|
||||
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) {
|
||||
mActiveScale = true;
|
||||
mPosY = screenY;
|
||||
} else if (button == Buttons.RIGHT) {
|
||||
mActiveRotate = true;
|
||||
mPosX = screenX;
|
||||
mPosY = screenY;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
@ -348,17 +347,6 @@ public class GdxMap implements ApplicationListener {
|
||||
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) {
|
||||
mMapView.updateMap(true);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user