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
+3 -1
View File
@@ -7,6 +7,8 @@
#include <memory>
#include <string>
class Engine;
namespace guiutil {
/// @brief Create element from XML
/// @param source XML
@@ -19,7 +21,7 @@ namespace guiutil {
);
void confirm(
const std::shared_ptr<gui::Menu>& menu,
Engine& engine,
const std::wstring& text,
const runnable& on_confirm=nullptr,
const runnable& on_deny=nullptr,