libGDX level zoom with keys, fixes #154

This commit is contained in:
Emux 2016-08-27 19:00:34 +03:00
parent b18dae5bef
commit 33b68fd0d6

View File

@ -96,9 +96,11 @@ public class InputHandler implements InputProcessor {
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: