camera: add cam_ prefix to zoom_ events

This commit is contained in:
Jeremy Baxter 2026-01-27 12:15:46 +13:00
parent ee44810636
commit 35a17c04b6
2 changed files with 4 additions and 4 deletions

View file

@ -28,9 +28,9 @@ func rotate_camera_x(x, delta):
func _input(event):
if event is InputEventMouseMotion:
mouse_velocity = event.relative
elif event.is_action_pressed("zoom_out"):
elif event.is_action_pressed("cam_zoom_out"):
current_zoom += 1
elif event.is_action_pressed("zoom_in"):
elif event.is_action_pressed("cam_zoom_in"):
current_zoom -= 1
current_zoom = clamp(current_zoom, zoom_min, zoom_max)