Removed SDL_TEXTINPUTEVENT_TEXT_SIZE

This commit is contained in:
Sam Lantinga 2024-03-25 12:55:49 -07:00
parent fa236f169b
commit 6443c75eda
8 changed files with 14 additions and 37 deletions

View file

@ -1184,6 +1184,10 @@ int SDL_SendKeyboardText(const char *text)
return 0;
}
if (!text || !*text) {
return 0;
}
/* Don't post text events for unprintable characters */
if (SDL_iscntrl((unsigned char)*text)) {
return 0;
@ -1218,6 +1222,10 @@ int SDL_SendEditingText(const char *text, int start, int length)
return 0;
}
if (!text) {
return 0;
}
/* Post the event, if desired */
posted = 0;
if (SDL_EventEnabled(SDL_EVENT_TEXT_EDITING)) {