feat: key pressed event interception & 'owner' input.add_callback third argument

This commit is contained in:
MihailRis
2025-01-02 20:51:43 +03:00
parent 7fce735ca1
commit b9ff1db086
17 changed files with 192 additions and 63 deletions
+14
View File
@@ -0,0 +1,14 @@
#pragma once
#include <memory>
#include "api_lua.hpp"
#include "frontend/UiDocument.hpp"
#include "graphics/ui/elements/UINode.hpp"
struct DocumentNode {
UiDocument* document;
std::shared_ptr<gui::UINode> node;
};
DocumentNode get_document_node(lua::State* L, int idx = 1);