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:
parent
b462db5adb
commit
a5c03dcd08
5 changed files with 22 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue