diff options
Diffstat (limited to 'core/src/ch/asynk/tankontank/screens')
-rw-r--r-- | core/src/ch/asynk/tankontank/screens/GameScreen.java | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/core/src/ch/asynk/tankontank/screens/GameScreen.java b/core/src/ch/asynk/tankontank/screens/GameScreen.java index efade05..13bb805 100644 --- a/core/src/ch/asynk/tankontank/screens/GameScreen.java +++ b/core/src/ch/asynk/tankontank/screens/GameScreen.java @@ -124,11 +124,9 @@ public class GameScreen implements Screen // blocked = false; if (button == Input.Buttons.LEFT) { dragPos.set(x, y); - if (ctrl.mayProcessTouch()) { - unprojectToHud(x, y, hudTouch); - unprojectToMap(x, y, mapTouch); - ctrl.touchDown(hudTouch.x, hudTouch.y, mapTouch.x, mapTouch.y); - } + unprojectToHud(x, y, hudTouch); + unprojectToMap(x, y, mapTouch); + ctrl.touchDown(hudTouch.x, hudTouch.y, mapTouch.x, mapTouch.y); } return true; } @@ -137,11 +135,9 @@ public class GameScreen implements Screen { // if (blocked) return true; if (button == Input.Buttons.LEFT) { - if (ctrl.mayProcessTouch()) { - unprojectToHud(x, y, hudTouch); - unprojectToMap(x, y, mapTouch); - ctrl.touchUp(hudTouch.x, hudTouch.y, mapTouch.x, mapTouch.y); - } + unprojectToHud(x, y, hudTouch); + unprojectToMap(x, y, mapTouch); + ctrl.touchUp(hudTouch.x, hudTouch.y, mapTouch.x, mapTouch.y); } // blocked = true; // inputDelay = INPUT_DELAY; |