How to check mouse is slide rotating?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By fish2091852127

I want to check the mouse is slide rotating,what function can do it?

:bust_in_silhouette: Reply From: estebanmolca

Can you explain what you mean by “slide rotating”? These are some of the functions that I know, I explain them to you in case it is what you are looking for:
speed: the speed of the mouse (Vector2), 0, 0 if the mouse is still.
position: current position.
relative: the last position of the mouse in the previous frame, but relative to the current position.
tilt: the rotation of the pen (or mouse slide rotating? ), on tablets to draw as wacom.

func _input(event):
	if event is InputEventMouseMotion:
		print("Speed: ", event.speed)
		print("Position: ", event.position)
		print("Relative last position: ", event.relative)
        print("Tilt: ", event.tilt)

why the event can not check InputEventMouseMotion when i was moving mouse?

fish2091852127 | 2020-03-09 08:53