where is reference of event propertie of input event?

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

i use relative.x propertie of event,where is reference ?

:bust_in_silhouette: Reply From: Zylann

Input events can be of various types, deriving from InputEvent. The type of input for which you have relative is InputEventMouseMotion: InputEventMouseMotion — Godot Engine (3.1) documentation in English

func _input(event):
    if event is InputEventMouseMotion:
        print(event.relative)