From 279c4cf3b49f6d03474859610fa82b17a179838e Mon Sep 17 00:00:00 2001 From: Babib3l Date: Sat, 30 May 2026 20:27:44 +0000 Subject: [PATCH] Fix hotkey labels (#118) Fixes the hotkeys settings page after https://git.ryujinx.app/projects/Ryubing/pulls/13 broke it Reviewed-on: https://git.ryujinx.app/projects/Ryubing/pulls/118 --- src/Ryujinx/UI/Helpers/Converters/KeyValueConverter.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Ryujinx/UI/Helpers/Converters/KeyValueConverter.cs b/src/Ryujinx/UI/Helpers/Converters/KeyValueConverter.cs index f6e042a6a..079acf687 100644 --- a/src/Ryujinx/UI/Helpers/Converters/KeyValueConverter.cs +++ b/src/Ryujinx/UI/Helpers/Converters/KeyValueConverter.cs @@ -6,6 +6,7 @@ using System; using System.Collections.Generic; using System.Globalization; using Key = Ryujinx.Input.Key; +using HidKey = Ryujinx.Common.Configuration.Hid.Key; namespace Ryujinx.Ava.UI.Helpers { @@ -55,6 +56,9 @@ namespace Ryujinx.Ava.UI.Helpers Key key => KeyboardLayoutLocaleHelper.TryGetSemanticLabel(key, out string localizedKeyLabel) ? localizedKeyLabel : key.ToString(), + HidKey key => KeyboardLayoutLocaleHelper.TryGetSemanticLabel((Key)(int)key, out string localizedHidKeyLabel) + ? localizedHidKeyLabel + : key.ToString(), PhysicalKey physicalKey => PhysicalKeyLabelHelper.GetDisplayString(physicalKey), GamepadInputId gamepadInputId => GetLocalizedMappedValue(gamepadInputId, _gamepadInputIdMap), StickInputId stickInputId => GetLocalizedMappedValue(stickInputId, _stickInputIdMap),