Feeding custom input events in godot 4

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

get_tree().input_event(InputEvent) is deprecated since Godot 3.x and removed in Godot 4.

What’s the alternative to the call? The documentation has not been updated for Godot 4 yet and the suggestion in the Godot 3.5 internal documents is to override _input_event(InputEvent), which, as I understand, is used to handle input events rather than add new ones to the pipeline.

Looking for an alternative to this - Viewport and canvas transforms — Godot Engine (3.5) documentation in English

:bust_in_silhouette: Reply From: CustomUser

Changed get_tree().input_event(InputEvent) to Input.parse_input_event(InputEvent)