1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-08 12:40:44 +00:00

Merge pull request #103841 from GustJc/embed_add_hotkeys

Add Embed Game Window shortcut hotkeys support for `suspend/pause` and `next frame` buttons
This commit is contained in:
Thaddeus Crews
2025-04-27 19:21:16 -05:00
6 changed files with 88 additions and 0 deletions

View File

@@ -226,6 +226,8 @@ private:
void _msg_filesystem_update_file(uint64_t p_thread_id, const Array &p_data);
void _msg_evaluation_return(uint64_t p_thread_id, const Array &p_data);
void _msg_window_title(uint64_t p_thread_id, const Array &p_data);
void _msg_embed_suspend_toggle(uint64_t p_thread_id, const Array &p_data);
void _msg_embed_next_frame(uint64_t p_thread_id, const Array &p_data);
void _parse_message(const String &p_msg, uint64_t p_thread_id, const Array &p_data);
void _set_reason_text(const String &p_reason, MessageType p_type);
@@ -287,6 +289,11 @@ protected:
static void _bind_methods();
public:
enum EmbedShortcutAction {
EMBED_SUSPEND_TOGGLE,
EMBED_NEXT_FRAME,
};
void request_remote_objects(const TypedArray<uint64_t> &p_obj_ids, bool p_update_selection = true);
void update_remote_object(ObjectID p_obj_id, const String &p_prop, const Variant &p_value, const String &p_field = "");