Signed-off-by: Slendi <slendi@socopon.com>
This commit is contained in:
2025-10-10 02:50:34 +03:00
parent 47ffde7996
commit 52fe62c3b1
5 changed files with 66 additions and 27 deletions

View File

@@ -191,13 +191,13 @@ auto App::init_wayland() -> void
bool meta = app->m_kbd.mod_active("Mod4");
if (!(ctrl || alt || meta)) {
if (sym == XKB_KEY_Left) {
app->m_kbd.typing.push_back(0);
} else if (sym == XKB_KEY_Down) {
app->m_kbd.typing.push_back(1);
} else if (sym == XKB_KEY_Up) {
} else if (sym == XKB_KEY_Down) {
app->m_kbd.typing.push_back(2);
} else if (sym == XKB_KEY_Right) {
} else if (sym == XKB_KEY_Up) {
app->m_kbd.typing.push_back(3);
} else if (sym == XKB_KEY_Right) {
app->m_kbd.typing.push_back(4);
} else {
u32 cp = xkb_keysym_to_utf32(sym);
if (cp >= 0x20) {
@@ -311,6 +311,7 @@ auto App::init_egl() -> void
InitWindow(m_win_w, m_win_h, "");
m_tr = std::make_shared<TextRenderer>();
m_gui = std::make_shared<ImGui>(m_tr);
auto const font = find_font_path();
assert(font && "Could not find font");
std::vector<std::filesystem::path> fallback_paths;