SDL_HINT_ENA...REEN_KEYBOARD(3)

πŸ“¦
version 3.4.18 Β· 3 versions
, in fedora 43, fedora 44

πŸ’– SDL_HINT_ENABLE_STEAM_SCREEN_KEYBOARD πŸ’–

okay bestie, so this page is literally all about SDL_HINT_ENABLE_STEAM_SCREEN_KEYBOARD β€” it's a hint (a variable, a lil vibe switch) that controls whether the Steam on-screen keyboard should be shown when text input is active. that's it. that's the whole gig. ✨


🌸 SYNOPSIS 🌸

#include <SDL3/SDL_hints.h>

#define SDL_HINT_ENABLE_STEAM_SCREEN_KEYBOARD "SDL_ENABLE_STEAM_SCREEN_KEYBOARD"

πŸŽ€ DESCRIPTION πŸŽ€

so here's the tea: Steam will set this hint via environment variable for games launched in Big Picture mode. that's Steam doing it for you, unprompted, like a friend who already ordered for the table. 🫢

but if you wanna be the main character and override that? you gotta call SDL_SetHintWithPriority() with priority SDL_HINT_OVERRIDE. no cap, that's the move. πŸ’…

the variable can be set to these values, and there are exactly two of them, so no choosing struggle:

  • "0" β€” do not show the Steam on-screen keyboard. keyboard? never met her. πŸ’€
  • "1" β€” show the Steam on-screen keyboard. slay, keyboard is up. πŸ‘‘
⚠️ important bestie alert: this hint should be set before SDL is initialized. like, set it early. if you set it after, that's giving too-late energy and it won't do the thing. πŸ™ˆ

🌈 AVAILABILITY 🌈

this hint is available since SDL 3.4.12. so if you're on anything older... yeah, she's not there yet. 😭


Simple Directmedia Layer β€’ SDL 3.4.18

okay that's the whole page, you ate it, go forth and keyboard responsibly πŸ¦‹β­πŸ’œ periodt.

πŸ“¦ where this page comes from