better input handling
This commit is contained in:
parent
b411718c94
commit
5b0169cd94
2 changed files with 39 additions and 27 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue