Embed TouchActionsPanel directly into the Android editor UI

This commit is contained in:
Anish Mishra
2025-04-18 14:21:57 +05:30
parent 09ea7bc6a3
commit 34b3582cf9
6 changed files with 156 additions and 54 deletions

View File

@@ -99,6 +99,11 @@ class ProjectSettingsEditor;
class SceneImportSettingsDialog;
class ProjectUpgradeTool;
#ifdef ANDROID_ENABLED
class HBoxContainer;
class TouchActionsPanel;
#endif
struct EditorProgress {
String task;
bool force_background = false;
@@ -276,6 +281,12 @@ private:
VBoxContainer *main_vbox = nullptr;
OptionButton *renderer = nullptr;
#ifdef ANDROID_ENABLED
HBoxContainer *main_hbox = nullptr; // Only created on Android for TouchActionsPanel.
TouchActionsPanel *touch_actions_panel = nullptr;
void _touch_actions_panel_mode_changed();
#endif
ConfirmationDialog *video_restart_dialog = nullptr;
int renderer_current = 0;