Skip to content

Commit

Permalink
libGDX level zoom with keys, fixes opensciencemap#154
Browse files Browse the repository at this point in the history
  • Loading branch information
devemux86 committed Aug 27, 2016
1 parent b18dae5 commit 33b68fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vtm-gdx/src/org/oscim/gdx/InputHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 33b68fd

Please sign in to comment.