i use Input(event) and InputEventMouseMotion, but how do i know if the mouse moves left or right
func _input(event):
if event is InputEventMouseMotion:
if event.relative:
a += 1
a -= 1
print(a)
I want that when I move the mouse to the right it adds the variable and when I turn to the left it subtracts, detect the negative and positive side. for now the variables are added and subtracted at the same time since I can't get the mouse side for each one