Add an editor setting to enable/disable TouchActionsPanel

Adds an editor setting to enable/disable TouchActionsPanel.

Automatically hide the panel when hardware keyboard is connected.
This commit is contained in:
Anish Mishra
2025-04-04 16:17:57 +05:30
parent b462db5adb
commit a5c03dcd08
5 changed files with 22 additions and 1 deletions

View File

@ -7931,7 +7931,10 @@ EditorNode::EditorNode() {
#ifdef ANDROID_ENABLED
// Add TouchActionsPanel node.
add_child(memnew(TouchActionsPanel));
bool is_enabled = EDITOR_GET("interface/touchscreen/enable_touch_actions_panel");
if (is_enabled) {
add_child(memnew(TouchActionsPanel));
}
#endif
// Bottom panels.