From 33b68fd0d6a0887f1846b847cac079c6c36f2841 Mon Sep 17 00:00:00 2001 From: Emux Date: Sat, 27 Aug 2016 19:00:34 +0300 Subject: [PATCH] libGDX level zoom with keys, fixes #154 --- vtm-gdx/src/org/oscim/gdx/InputHandler.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vtm-gdx/src/org/oscim/gdx/InputHandler.java b/vtm-gdx/src/org/oscim/gdx/InputHandler.java index e98046dea..249eac7f9 100644 --- a/vtm-gdx/src/org/oscim/gdx/InputHandler.java +++ b/vtm-gdx/src/org/oscim/gdx/InputHandler.java @@ -96,9 +96,11 @@ public boolean keyDown(int keycode) { break; case Input.Keys.NUM_1: mMap.animator().animateZoom(500, 0.5, 0, 0); + mMap.updateMap(false); break; case Input.Keys.NUM_2: mMap.animator().animateZoom(500, 2, 0, 0); + mMap.updateMap(false); break; case Input.Keys.D: