From 4a11809370fb22fcce2a9d5f91e49f0fcbdbfd0a Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 24 Apr 2024 11:18:06 -0400 Subject: [PATCH] SDL_TextInputEvent: Note that `text` field is UTF-8 encoded. Reference Issue https://github.com/libsdl-org/sdlwiki/issues/516 --- include/SDL3/SDL_events.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/SDL3/SDL_events.h b/include/SDL3/SDL_events.h index 5f67e28cb5..9900e092bb 100644 --- a/include/SDL3/SDL_events.h +++ b/include/SDL3/SDL_events.h @@ -348,7 +348,7 @@ typedef struct SDL_TextInputEvent Uint32 reserved; Uint64 timestamp; /**< In nanoseconds, populated using SDL_GetTicksNS() */ SDL_WindowID windowID; /**< The window with keyboard focus, if any */ - char *text; /**< The input text */ + char *text; /**< The input text, UTF-8 encoded! */ } SDL_TextInputEvent; /**