From 7a2214ae0ec07d20805d5cb01ba7acb61e46c3de Mon Sep 17 00:00:00 2001 From: takase1121 <20792268+takase1121@users.noreply.github.com> Date: Mon, 19 May 2025 08:28:04 +0800 Subject: [PATCH] main: fix not receiving text input --- src/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.c b/src/main.c index b834367..7381f2a 100644 --- a/src/main.c +++ b/src/main.c @@ -3,6 +3,7 @@ #include #include #include "api/api.h" +#include "renwindow.h" #include "rencache.h" #include "renderer.h" @@ -197,6 +198,8 @@ init_lua: #endif SDL_SetEventEnabled(SDL_EVENT_TEXT_INPUT, true); SDL_SetEventEnabled(SDL_EVENT_TEXT_EDITING, true); + // ugly hack to get SDL3 to give us text input... in certain conditions + SDL_StartTextInput(window_renderer.window); const char *init_lite_code = \ "local core\n"