1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 01:59:43 +01:00

Add check for keyboard_is_active

This commit is contained in:
AllyTally 2023-08-24 14:51:09 -03:00 committed by Misa Elizabeth Kai
parent 7f03b00635
commit 3ca28a5944

View file

@ -152,6 +152,13 @@ bool BUTTONGLYPHS_keyboard_is_available(void)
{ {
/* Returns true if it makes sense to show button hints that are only available /* 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. */ * 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); return !SDL_GetHintBoolean("SteamDeck", SDL_FALSE);
} }