better input handling

This commit is contained in:
Alessandro Mauri 2025-06-17 18:23:36 +02:00
parent b411718c94
commit 5b0169cd94
2 changed files with 39 additions and 27 deletions

View file

@ -181,6 +181,12 @@ fn void Ctx.input_text_unicode(&ctx, char[] text)
ctx.input.events.text_input = true;
}
fn void Ctx.input_char(&ctx, char c)
{
char[1] b = {c};
ctx.input_text_utf8(b[..]);
}
// Mouse Buttons down
fn void Ctx.input_mod_keys(&ctx, ModKeys modkeys)
{