Mouse zooming is now exponential

master
Marc Gilleron 2019-06-01 20:03:42 +01:00
parent d732f9b59f
commit b5e3bf18cf
1 changed files with 2 additions and 2 deletions

View File

@ -26,11 +26,11 @@ func _input(event):
Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED)
if event.button_index == BUTTON_WHEEL_UP:
distance = max(distance-1, 0)
distance = max(distance - 1 - distance * 0.1, 0)
update_rotations()
elif event.button_index == BUTTON_WHEEL_DOWN:
distance = max(distance+1, 0)
distance = max(distance + 1 + distance * 0.1, 0)
update_rotations()
elif event is InputEventMouseMotion: