I'd like to emit InputActions via GDScript -- I want certain logic to control UI events and I don't want to have to add code to every UI-aware component in Godot.
But most of the answers to this question suggest calling
get_tree().input_event(InputEvent), which is now deprecated.
Should not be called manually, override _input_event() instead. Will be removed in Godot 4.0. But it looks like overriding that will only allow me to react to these script-generated Actions in the main loop's code. My goal is to emit Actions which are picked up by all
_input(InputEvent) functions, as well as the built-in UI elements.
What's the recommended means of generating Actions via GDScript in Godot 3.2+?