summaryrefslogtreecommitdiff
path: root/UI/Camera.gd
diff options
context:
space:
mode:
Diffstat (limited to 'UI/Camera.gd')
-rw-r--r--UI/Camera.gd1
1 files changed, 1 insertions, 0 deletions
diff --git a/UI/Camera.gd b/UI/Camera.gd
index e10c371..1fd9361 100644
--- a/UI/Camera.gd
+++ b/UI/Camera.gd
@@ -48,6 +48,7 @@ func _input(event):
zoom = Vector2(new_zoom, new_zoom)
global_position += previous_mouse_position - get_global_mouse_position()
zoomed.emit(zoom)
+
if event.is_action("camera_zoom_in"):
var previous_mouse_position := get_global_mouse_position()
var new_zoom = min(zoom.x + zoom_step, zoom_max)