From e34894ab475b22ed8c5880c57ce5a441131ed05e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laure=CE=B7t?= Date: Thu, 27 May 2021 11:07:49 +0200 Subject: [PATCH] fix: inversed zoomIn and zoomOut --- core/src/sagittarius/view/GameScreen.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/sagittarius/view/GameScreen.java b/core/src/sagittarius/view/GameScreen.java index d1b34b0..3193b9e 100644 --- a/core/src/sagittarius/view/GameScreen.java +++ b/core/src/sagittarius/view/GameScreen.java @@ -135,10 +135,10 @@ public class GameScreen extends BaseScreen implements InputProcessor { } // camera zoom using keys - if (Gdx.input.isKeyPressed(SagittariusGame.zoomInKey)) { + if (Gdx.input.isKeyPressed(SagittariusGame.zoomOutKey)) { gameCam.zoom += dt; } - if (Gdx.input.isKeyPressed(SagittariusGame.zoomOutKey)) { + if (Gdx.input.isKeyPressed(SagittariusGame.zoomInKey)) { gameCam.zoom -= dt; } // clamp zoom