camera: fix wrong zoom input event

This commit is contained in:
Jeremy Baxter 2026-01-25 19:49:10 +13:00
parent f352190612
commit 05c8dbca70

View file

@ -26,9 +26,9 @@ func _input(event):
if event is InputEventMouseMotion:
mouse_x_velocity = event.relative.x
mouse_y_velocity = event.relative.y
elif event.is_action_pressed("zoom_in"):
current_zoom += 5
elif event.is_action_pressed("zoom_out"):
current_zoom += 5
elif event.is_action_pressed("zoom_in"):
current_zoom -= 5
func _process(delta):