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