SDL_HINT_GDK_TEXTINPUT_SCOPE(3)
β¨ SDL_HINT_GDK_TEXTINPUT_SCOPE β¨
okay so bestie, welcome to the SDL_HINT_GDK_TEXTINPUT_SCOPE page π this is one of the SDL3 FUNCTIONS and it's lowkey niche but highkey important if you're on GDK, so let's get into it π«Ά
π NAME π
SDL_HINT_GDK_TEXTINPUT_SCOPE β this variable sets the input scope of the TextInput window on GDK platforms. that's it, that's the whole vibe π
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_hints.h>
#define SDL_HINT_GDK_TEXTINPUT_SCOPE "SDL_GDK_TEXTINPUT_SCOPE"
like yes, it's a #define, and yes, the string is literally the same as the name but with SDL_ in front. iconic behavior, no notes β¨
π DESCRIPTION π
Set this hint to change the XGameUiTextEntryInputScope value that will be passed to the window creation function. πͺ
The value must be a stringified integer, fr fr. So like, "0" for XGameUiTextEntryInputScope::Default. not the number, not the enum, the string of the number. the way that it has to be a string is genuinely so real of it π
heads up bestie: this hint is available only if SDL_GDK_TEXTINPUT is defined. if that's not defined, this whole thing is just not gonna show up for you π
Also!! This hint should be set before calling SDL_StartTextInput(). Set it late and it's giving nothing, set it early and it's giving main character energy π
π AVAILABILITY π
This hint is available since SDL 3.2.0. so if you're on anything older, sorry bestie, no scope for you π
and that's the whole page!! go forth and set your scope before you start that text input, you got this π¦π
Simple Directmedia Layer Β· SDL 3.4.18 Β· SDL_HINT_GDK_TEXTINPUT_SCOPE(3) β mwah, ty for reading, slay πβ¨
π¦ 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