how to detect mouse movement

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

i have a camera and i want he detect the move of the mouse

:bust_in_silhouette: Reply From: MmTtDeveloper

You can detect mouse movement with this code:

func _input(event):
 if event is InputEventMouseMotion:
     # Mouse movement has been detected, do something about that here

Source: Godot Documentation