mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-06-04 19:39:15 +00:00
Add non functional reset keybinds button and refresh labels
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"Locales": [
|
"Locales": [
|
||||||
{
|
{
|
||||||
"ID": "MenuBarActionsOpenMiiEditor",
|
"ID": "MenuBarActionsOpenMiiEditor",
|
||||||
@@ -6878,26 +6878,51 @@
|
|||||||
{
|
{
|
||||||
"ID": "ControllerSettingsRefresh",
|
"ID": "ControllerSettingsRefresh",
|
||||||
"Translations": {
|
"Translations": {
|
||||||
"ar_SA": "تحديث",
|
"ar_SA": "تحديث أجهزة الإدخال",
|
||||||
"de_DE": "Aktualisieren",
|
"de_DE": "Eingabegeräte aktualisieren",
|
||||||
"el_GR": "Ανανέωση",
|
"el_GR": "Ανανέωση συσκευών εισόδου",
|
||||||
"en_US": "Refresh",
|
"en_US": "Refresh input devices",
|
||||||
"es_ES": "Actualizar",
|
"es_ES": "Actualizar dispositivos de entrada",
|
||||||
"fr_FR": "Actualiser",
|
"fr_FR": "Actualiser les périphériques d'entrée",
|
||||||
"he_IL": "רענון",
|
"he_IL": "רענון התקני קלט",
|
||||||
"it_IT": "Ricarica",
|
"it_IT": "Aggiorna dispositivi di input",
|
||||||
"ja_JP": "更新",
|
"ja_JP": "入力デバイスを更新",
|
||||||
"ko_KR": "새로 고침",
|
"ko_KR": "입력 장치 새로 고침",
|
||||||
"no_NO": "Oppdater",
|
"no_NO": "Oppdater inndataenheter",
|
||||||
"pl_PL": "Odśwież",
|
"pl_PL": "Odśwież urządzenia wejściowe",
|
||||||
"pt_BR": "Atualizar",
|
"pt_BR": "Atualizar dispositivos de entrada",
|
||||||
"ru_RU": "Обновить",
|
"ru_RU": "Обновить устройства ввода",
|
||||||
"sv_SE": "Uppdatera",
|
"sv_SE": "Uppdatera inmatningsenheter",
|
||||||
"th_TH": "รีเฟรช",
|
"th_TH": "รีเฟรชอุปกรณ์ป้อนข้อมูล",
|
||||||
"tr_TR": "Yenile",
|
"tr_TR": "Giriş cihazlarını yenile",
|
||||||
"uk_UA": "Оновити",
|
"uk_UA": "Оновити пристрої введення",
|
||||||
"zh_CN": "刷新",
|
"zh_CN": "刷新输入设备",
|
||||||
"zh_TW": "重新整理"
|
"zh_TW": "重新整理輸入裝置"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ID": "ControllerSettingsResetKeybindsToDefault",
|
||||||
|
"Translations": {
|
||||||
|
"ar_SA": "",
|
||||||
|
"de_DE": "",
|
||||||
|
"el_GR": "",
|
||||||
|
"en_US": "Reset keybinds to default",
|
||||||
|
"es_ES": "Restablecer asignaciones por defecto",
|
||||||
|
"fr_FR": "Réinitialiser les assignations par défaut",
|
||||||
|
"he_IL": "",
|
||||||
|
"it_IT": "",
|
||||||
|
"ja_JP": "",
|
||||||
|
"ko_KR": "",
|
||||||
|
"no_NO": "",
|
||||||
|
"pl_PL": "",
|
||||||
|
"pt_BR": "",
|
||||||
|
"ru_RU": "",
|
||||||
|
"sv_SE": "",
|
||||||
|
"th_TH": "",
|
||||||
|
"tr_TR": "",
|
||||||
|
"uk_UA": "",
|
||||||
|
"zh_CN": "",
|
||||||
|
"zh_TW": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -22976,4 +23001,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -304,6 +304,11 @@ namespace Ryujinx.Ava.UI.ViewModels.Input
|
|||||||
NotifyChanges();
|
NotifyChanges();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void RefreshInputDevices()
|
||||||
|
{
|
||||||
|
RefreshAvailableDevices();
|
||||||
|
}
|
||||||
|
|
||||||
public object SelectedDeviceItem
|
public object SelectedDeviceItem
|
||||||
{
|
{
|
||||||
get => _device >= 0 && _device < Devices.Count ? Devices[_device] : null;
|
get => _device >= 0 && _device < Devices.Count ? Devices[_device] : null;
|
||||||
|
|||||||
@@ -149,7 +149,7 @@
|
|||||||
<Grid
|
<Grid
|
||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
Margin="2"
|
Margin="2"
|
||||||
HorizontalAlignment="Stretch" ColumnDefinitions="Auto,*,Auto">
|
HorizontalAlignment="Stretch" ColumnDefinitions="Auto,*,Auto,Auto">
|
||||||
<TextBlock
|
<TextBlock
|
||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
Margin="5,0,10,0"
|
Margin="5,0,10,0"
|
||||||
@@ -175,12 +175,25 @@
|
|||||||
MinWidth="0"
|
MinWidth="0"
|
||||||
Margin="5,0,0,0"
|
Margin="5,0,0,0"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
Command="{Binding ResetCurrentDeviceToDefaults}">
|
ToolTip.Tip="{ext:Locale ControllerSettingsRefresh}"
|
||||||
|
Command="{Binding RefreshInputDevices}">
|
||||||
<ui:SymbolIcon
|
<ui:SymbolIcon
|
||||||
Symbol="Refresh"
|
Symbol="Refresh"
|
||||||
FontSize="15"
|
FontSize="15"
|
||||||
Height="20"/>
|
Height="20"/>
|
||||||
</Button>
|
</Button>
|
||||||
|
<Button
|
||||||
|
Grid.Column="3"
|
||||||
|
MinWidth="0"
|
||||||
|
Margin="5,0,0,0"
|
||||||
|
VerticalAlignment="Center"
|
||||||
|
ToolTip.Tip="{ext:Locale ControllerSettingsResetKeybindsToDefault}"
|
||||||
|
Command="{Binding ResetCurrentDeviceToDefaults}">
|
||||||
|
<ui:SymbolIcon
|
||||||
|
Symbol="Undo"
|
||||||
|
FontSize="15"
|
||||||
|
Height="20"/>
|
||||||
|
</Button>
|
||||||
</Grid>
|
</Grid>
|
||||||
<!-- Controller Type -->
|
<!-- Controller Type -->
|
||||||
<Grid
|
<Grid
|
||||||
|
|||||||
Reference in New Issue
Block a user