camera: add cam_ prefix to zoom_ events
This commit is contained in:
parent
ee44810636
commit
35a17c04b6
2 changed files with 4 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue