소스 검색

SDL_TextInputEvent: Note that `text` field is UTF-8 encoded.

Reference Issue https://github.com/libsdl-org/sdlwiki/issues/516
Ryan C. Gordon 1 년 전
부모
커밋
4a11809370
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      include/SDL3/SDL_events.h

+ 1 - 1
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;
 
 /**