From c8f674ac6fa0914d9e448d2929f2385cdad80d60 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Tue, 5 Nov 2024 11:34:49 +0100 Subject: next commit --- UI/Camera.gd | 1 + 1 file changed, 1 insertion(+) (limited to 'UI/Camera.gd') 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) -- cgit v1.2.3