Add clipboard

Signed-off-by: Slendi <slendi@socopon.com>
This commit is contained in:
2025-10-10 13:50:28 +03:00
parent e43799d11b
commit 86024e2c03
5 changed files with 267 additions and 66 deletions

View File

@@ -45,7 +45,9 @@ auto App::tick() -> void
rune = m_kbd.typing.back();
m_kbd.typing.clear();
}
ImGuiGuard gui_scope(m_gui, rune, m_kbd.ctrl(), m_kbd.shift());
ImGuiGuard gui_scope(m_gui, rune, m_kbd.ctrl(), m_kbd.shift(),
clipboard(),
[this](std::string_view const &str) { clipboard(str); });
Rectangle const input_rect {
0.0f,
@@ -63,6 +65,4 @@ auto App::tick() -> void
EndDrawing();
eglSwapBuffers(m_gl.edpy, m_gl.esurf);
m_kbd.typing.clear();
m_kbd.clear_transients();
}