Control::gui_input
is not exposed
#1426
Labels
discussion
enhancement
This is an enhancement on the current functionality
topic:gdextension
This relates to the new Godot 4 extension implementation
Godot version
4.2.1
godot-cpp version
4.2
System information
Windows 11
Issue description
Control::gui_input
is not exposed andControl::_gui_input
is not its GDExtension counterpart, not allowing sending events to otherControl
nodes with specific behaviours.The use case is trying to reproduce the behaviour of Godot visual shader editor add node dialogue, where you can filter the options with a
LineEdit
on focus, while also being able to go up and down with the keyboard among the filtered member options in theTree
.This is the code you want to be able to call to sent events to
Tree *member
(from https://github.com/godotengine/godot/blob/master/editor/plugins/visual_shader_editor_plugin.cpp)......but changing
members->gui_input(ie);
tomembers->_gui_input(ie);
has not the same results, as_gui_input()
in GDExtension has only overriding purposes as of now.I'll quote a comment by @Zylann from https://github.com/Zylann/godot_voxel/blob/master/editor/graph/voxel_graph_node_dialog.cpp as it seems he found the same issue:
Will it be exposed correctly in the future?
Steps to reproduce
As explained in the description, try to use
_gui_input()
on anyControl
child class.Minimal reproduction project
No minimal reproduction project needed.
The text was updated successfully, but these errors were encountered: