mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-01-10 04:39:11 +00:00
Move symbols out of locales
This commit is contained in:
parent
7416aeee30
commit
b4d055e4e9
2 changed files with 27 additions and 17 deletions
|
@ -269,16 +269,8 @@
|
|||
"KeyUnknown": "Unknown",
|
||||
"KeyShiftLeft": "Shift Left",
|
||||
"KeyShiftRight": "Shift Right",
|
||||
"KeyControlLeft": "Control Left",
|
||||
"KeyControlRight": "Control Right",
|
||||
"KeyAltLeft": "Alt Left",
|
||||
"KeyAltRight": "Alt Right",
|
||||
"KeyOptLeft": "⌥ Left",
|
||||
"KeyOptRight": "⌥ Right",
|
||||
"KeyWinLeft": "⊞ Left",
|
||||
"KeyWinRight": "⊞ Right",
|
||||
"KeyCmdLeft": "⌘ Left",
|
||||
"KeyCmdRight": "⌘ Right",
|
||||
"KeySideLeft": "Left",
|
||||
"KeySideRight": "Right",
|
||||
"KeyMenu": "Menu",
|
||||
"KeyUp": "Up",
|
||||
"KeyDown": "Down",
|
||||
|
|
|
@ -17,12 +17,12 @@ namespace Ryujinx.Ava.UI.Helpers
|
|||
{ Key.Unknown, LocaleKeys.KeyUnknown },
|
||||
{ Key.ShiftLeft, LocaleKeys.KeyShiftLeft },
|
||||
{ Key.ShiftRight, LocaleKeys.KeyShiftRight },
|
||||
{ Key.ControlLeft, LocaleKeys.KeyControlLeft },
|
||||
{ Key.ControlRight, LocaleKeys.KeyControlRight },
|
||||
{ Key.AltLeft, OperatingSystem.IsMacOS() ? LocaleKeys.KeyOptLeft : LocaleKeys.KeyAltLeft },
|
||||
{ Key.AltRight, OperatingSystem.IsMacOS() ? LocaleKeys.KeyOptRight : LocaleKeys.KeyAltRight },
|
||||
{ Key.WinLeft, OperatingSystem.IsMacOS() ? LocaleKeys.KeyCmdLeft : LocaleKeys.KeyWinLeft },
|
||||
{ Key.WinRight, OperatingSystem.IsMacOS() ? LocaleKeys.KeyCmdRight : LocaleKeys.KeyWinRight },
|
||||
{ Key.ControlLeft, LocaleKeys.KeySideLeft },
|
||||
{ Key.ControlRight, LocaleKeys.KeySideRight },
|
||||
{ Key.AltLeft, LocaleKeys.KeySideLeft },
|
||||
{ Key.AltRight, LocaleKeys.KeySideRight },
|
||||
{ Key.WinLeft, LocaleKeys.KeySideLeft },
|
||||
{ Key.WinRight, LocaleKeys.KeySideRight },
|
||||
{ Key.Up, LocaleKeys.KeyUp },
|
||||
{ Key.Down, LocaleKeys.KeyDown },
|
||||
{ Key.Left, LocaleKeys.KeyLeft },
|
||||
|
@ -128,7 +128,25 @@ namespace Ryujinx.Ava.UI.Helpers
|
|||
{
|
||||
if (_keysMap.TryGetValue(key, out LocaleKeys localeKey))
|
||||
{
|
||||
keyString = LocaleManager.Instance[localeKey];
|
||||
var symbol = "";
|
||||
|
||||
switch (key)
|
||||
{
|
||||
case Key.ControlLeft:
|
||||
case Key.ControlRight:
|
||||
symbol = OperatingSystem.IsMacOS() ? "⌃ " : "Ctrl ";
|
||||
break;
|
||||
case Key.WinLeft:
|
||||
case Key.WinRight:
|
||||
symbol = OperatingSystem.IsMacOS() ? "⌘ " : "⊞ ";
|
||||
break;
|
||||
case Key.AltLeft:
|
||||
case Key.AltRight:
|
||||
symbol = OperatingSystem.IsMacOS() ? "⌥ " : "Alt ";
|
||||
break;
|
||||
}
|
||||
|
||||
keyString = symbol + LocaleManager.Instance[localeKey];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue