diff options
author | Daniel Weipert <git@mail.dweipert.de> | 2024-11-05 11:34:49 +0100 |
---|---|---|
committer | Daniel Weipert <git@mail.dweipert.de> | 2024-11-05 11:34:49 +0100 |
commit | c8f674ac6fa0914d9e448d2929f2385cdad80d60 (patch) | |
tree | a913454c42bb520aa644f4e2dcf0d42ba11c83de /UI/Camera.gd | |
parent | 84365b6f901a9c0251a9f724a8d9f81a3787e97d (diff) |
next commit
Diffstat (limited to 'UI/Camera.gd')
-rw-r--r-- | UI/Camera.gd | 1 |
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) |