SDL_HINT_ENA...REEN_KEYBOARD(3)
β¨ NAME β¨
SDL_HINT_ENABLE_SCREEN_KEYBOARD β bestie, this is the variable that decides whether the on-screen keyboard pops up when text input is active. π
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_hints.h>
#define SDL_HINT_ENABLE_SCREEN_KEYBOARD "SDL_ENABLE_SCREEN_KEYBOARD"
π DESCRIPTION π
okay so here's the tea β β you set this variable to one of these three little values and it decides the whole on-screen keyboard situation:
"auto"β the on-screen keyboard shows up only if there's no physical keyboard attached. this is the default, the moment we all live in, no notes. π"0"β nope. do not show the on-screen keyboard. ever. it's giving "we don't do that here". π"1"β yes pls, show the on-screen keyboard if available. π«Ά
β οΈ not me forgetting the timing tho β you must set this hint before SDL_StartTextInput() gets called. like, before. if you're late, it's over for you fr fr. π
π AVAILABILITY π
this hint has been around since SDL 3.2.0. iconic, honestly. π
and that's the whole page, bestie β written up in the Simple Directmedia Layer manual set, straight outta SDL 3.4.18. go forth and slay your text input. π¦πβ¨
π¦ 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