In Godot3.2(Windows 10/64bit) , on trying to trigger 3D movement with respect to the mouse "scroll factor" in both _input()
and _unhandled_input()
functions,the console gives the following error :-
Invalid get index 'factor' (on base: 'InputEventMouseMotion').
No InputEventMouseMotion
event is used in _input() but still console gives the above error.Which other _input function can process the mouse scroll factor?
extends Spatial
func _ready():
pass
func _input(event):
if event is InputEventMouseButton :
print('event.factor = ' , event.factor)
#ERROR - Invalid get index 'factor' (on base: 'InputEventMouseMotion').
#func _unhandled_input(event):
# if event is InputEventMouseButton && event.button_index == BUTTON_WHEEL_UP || event.button_index == BUTTON_WHEEL_DOWN:
# print('event.factor = ' , event.factor)