camera: fix wrong zoom input event
This commit is contained in:
parent
f352190612
commit
05c8dbca70
1 changed files with 2 additions and 2 deletions
|
|
@ -26,9 +26,9 @@ func _input(event):
|
||||||
if event is InputEventMouseMotion:
|
if event is InputEventMouseMotion:
|
||||||
mouse_x_velocity = event.relative.x
|
mouse_x_velocity = event.relative.x
|
||||||
mouse_y_velocity = event.relative.y
|
mouse_y_velocity = event.relative.y
|
||||||
elif event.is_action_pressed("zoom_in"):
|
|
||||||
current_zoom += 5
|
|
||||||
elif event.is_action_pressed("zoom_out"):
|
elif event.is_action_pressed("zoom_out"):
|
||||||
|
current_zoom += 5
|
||||||
|
elif event.is_action_pressed("zoom_in"):
|
||||||
current_zoom -= 5
|
current_zoom -= 5
|
||||||
|
|
||||||
func _process(delta):
|
func _process(delta):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue