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:
@ -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.
|
||||
|
||||
Reference in New Issue
Block a user