Restoring text input to the default state

It’s been documented informally, anyway. For example here Sam says of SDL_StartTextInput() and SDL_StopTextInput(): “If you just want American and Western European language support on desktop systems, you can ignore those functions. They’re for more advanced international input with IMEs and mobile devices.”.

So it’s clear that SDL_TEXTINPUT events are supposed to occur before SDL_StartTextInput() is called.