mirror of https://github.com/libsdl-org/SDL.git
Always show the on-screen keyboard on Steam Deck
Steam will eventually have smarts about whether a keyboard is active and will igore the request appropriately. Fixes https://github.com/libsdl-org/SDL/issues/12595
This commit is contained in:
parent
8caeaaacdd
commit
03a53ce0d1
|
|
@ -5416,6 +5416,10 @@ bool SDL_GetTextInputMultiline(SDL_PropertiesID props)
|
||||||
static bool AutoShowingScreenKeyboard(void)
|
static bool AutoShowingScreenKeyboard(void)
|
||||||
{
|
{
|
||||||
const char *hint = SDL_GetHint(SDL_HINT_ENABLE_SCREEN_KEYBOARD);
|
const char *hint = SDL_GetHint(SDL_HINT_ENABLE_SCREEN_KEYBOARD);
|
||||||
|
if (!hint) {
|
||||||
|
// Steam will eventually have smarts about whether a keyboard is active, so always request the on-screen keyboard on Steam Deck
|
||||||
|
hint = SDL_GetHint("SteamDeck");
|
||||||
|
}
|
||||||
if (((!hint || SDL_strcasecmp(hint, "auto") == 0) && !SDL_HasKeyboard()) ||
|
if (((!hint || SDL_strcasecmp(hint, "auto") == 0) && !SDL_HasKeyboard()) ||
|
||||||
SDL_GetStringBoolean(hint, false)) {
|
SDL_GetStringBoolean(hint, false)) {
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue