Mouse zooming is now exponential
This commit is contained in:
parent
d732f9b59f
commit
b5e3bf18cf
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user