From 3ca28a5944ef7b74bff16525783d3b92ad922c89 Mon Sep 17 00:00:00 2001 From: AllyTally Date: Thu, 24 Aug 2023 14:51:09 -0300 Subject: [PATCH] Add check for keyboard_is_active --- desktop_version/src/ButtonGlyphs.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/desktop_version/src/ButtonGlyphs.cpp b/desktop_version/src/ButtonGlyphs.cpp index 4a01870a..960c5aa4 100644 --- a/desktop_version/src/ButtonGlyphs.cpp +++ b/desktop_version/src/ButtonGlyphs.cpp @@ -152,6 +152,13 @@ bool BUTTONGLYPHS_keyboard_is_available(void) { /* Returns true if it makes sense to show button hints that are only available * on keyboards (like press M to mute), false if we're on a console. */ + + if (BUTTONGLYPHS_keyboard_is_active()) + { + /* The keyboard is active, so there HAS to be a keyboard available */ + return true; + } + return !SDL_GetHintBoolean("SteamDeck", SDL_FALSE); }