You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Merge pull request #98574 from syntaxerror247/android_input_dialog
[Android] Implement native input dialog support
This commit is contained in:
@@ -87,6 +87,8 @@ class DisplayServerAndroid : public DisplayServer {
|
||||
|
||||
Callable system_theme_changed;
|
||||
|
||||
Callable input_dialog_callback;
|
||||
|
||||
void _window_callback(const Callable &p_callable, const Variant &p_arg, bool p_deferred = false) const;
|
||||
|
||||
static void _dispatch_input_events(const Ref<InputEvent> &p_event);
|
||||
@@ -116,6 +118,9 @@ public:
|
||||
virtual String clipboard_get() const override;
|
||||
virtual bool clipboard_has() const override;
|
||||
|
||||
virtual Error dialog_input_text(String p_title, String p_description, String p_partial, const Callable &p_callback) override;
|
||||
void emit_input_dialog_callback(String p_text);
|
||||
|
||||
virtual TypedArray<Rect2> get_display_cutouts() const override;
|
||||
virtual Rect2i get_display_safe_area() const override;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user