From b3b9e8c2b8068ce2566a9be2a813b2f04088f3ce Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 7 Nov 2021 06:46:42 +0100 Subject: Include utf8 string in text entered event --- include/mgl/window/event.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/mgl/window/event.h b/include/mgl/window/event.h index 0836098..4a3ba71 100644 --- a/include/mgl/window/event.h +++ b/include/mgl/window/event.h @@ -14,6 +14,8 @@ typedef struct { typedef struct { uint32_t codepoint; + int size; + unsigned char str[5]; /* utf8, null terminated */ } mgl_text_event; typedef struct { -- cgit v1.2.3