aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-11-07 06:46:42 +0100
committerdec05eba <dec05eba@protonmail.com>2021-11-07 06:46:42 +0100
commitb3b9e8c2b8068ce2566a9be2a813b2f04088f3ce (patch)
tree82b8c03d3e9fa25c0b50fe5ef2f59b713432ac21 /tests
parent214336492da0d184d5ad4ac64c31920954c5f7e7 (diff)
Include utf8 string in text entered event
Diffstat (limited to 'tests')
-rw-r--r--tests/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/main.c b/tests/main.c
index 85754f2..2359cda 100644
--- a/tests/main.c
+++ b/tests/main.c
@@ -218,7 +218,7 @@ int main(int argc, char **argv) {
while(mgl_window_poll_event(&window, &event)) {
switch(event.type) {
case MGL_EVENT_TEXT_ENTERED: {
- fprintf(stderr, "text event, codepoint: %u\n", event.text.codepoint);
+ fprintf(stderr, "text event, codepoint: %u, str: %s\n", event.text.codepoint, event.text.str);
break;
}
case MGL_EVENT_KEY_PRESSED: {