SDL_StopTextInput(3)
π SDL_StopTextInput π
okay bestie, welcome to the SDL3 FUNCTIONS corner of the manual, and today's main character is SDL_StopTextInput β the one that stops your window from receiving any text input events. no cap. she's the off switch. π
β¨ NAME β¨
SDL_StopTextInput β stop receiving any text input events in a window. π
π¦ SYNOPSIS π¦
#include <SDL3/SDL_keyboard.h>
bool SDL_StopTextInput(SDL_Window *window);
πΈ DESCRIPTION πΈ
so here's the tea β β if SDL_StartTextInput() was the one that showed the screen keyboard, this function is the one that hides it. that's it. that's the whole vibe. she takes it away. poof. πͺ
π FUNCTION PARAMETERS π
windowβ the window you wanna disable text input on. that's the target, bestie. π―
β RETURN VALUE β
returns true on success, or false on failure. π and if it fails? call SDL_GetError() for more info, because she will tell you what went wrong. iykyk. π
π₯ THREAD SAFETY π₯
bestie, listen to me on this one: this function should only be called on the main thread. do not try her from a side thread. she is not built for that. periodt. π
π AVAILABILITY π
this function is available since SDL 3.2.0. so if you're on anything older, she simply does not exist yet, sorry. π
π SEE ALSO π
SDL_StartTextInput(3)β the other half of this duo, the one that turns it ON. go read her too, they're a matching set. π«Ά
and that's the whole page, angel β¨ β this lil rewrite lives under the Simple Directmedia Layer banner, from the SDL 3.4.18 era. now go forth and stop that text input, you absolute icon. πππ¦
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms