mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2025-08-30 07:25:05 +00:00
Added gamepad configuration for custom configuration
This commit is contained in:
parent
7f4a161ca5
commit
3a8e6e3117
2 changed files with 14 additions and 3 deletions
|
|
@ -29,6 +29,7 @@
|
|||
IsVisible="False"
|
||||
KeyboardNavigation.IsTabStop="False"/>
|
||||
<Grid Name="Pages" IsVisible="False" Grid.Row="2">
|
||||
<settings:SettingsInputView Name="InputPage" />
|
||||
<settings:SettingsSystemView Name="SystemPage" />
|
||||
<settings:SettingsCPUView Name="CpuPage" />
|
||||
<settings:SettingsGraphicsView Name="GraphicsPage" />
|
||||
|
|
@ -79,6 +80,10 @@
|
|||
</ui:NavigationView.PaneHeader>
|
||||
|
||||
<ui:NavigationView.MenuItems>
|
||||
<ui:NavigationViewItem
|
||||
Content="{ext:Locale SettingsTabInput}"
|
||||
Tag="InputPage"
|
||||
IconSource="Games" />
|
||||
<ui:NavigationViewItem
|
||||
Content="{ext:Locale SettingsTabSystem}"
|
||||
Tag="SystemPage"
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@ namespace Ryujinx.Ava.UI.Windows
|
|||
viewModel.SelectedApplication.Icon);
|
||||
|
||||
ViewModel.CloseWindow += Close;
|
||||
ViewModel.SaveSettingsEvent += SaveSettings;
|
||||
|
||||
InitializeComponent();
|
||||
Load();
|
||||
|
|
@ -51,6 +52,11 @@ namespace Ryujinx.Ava.UI.Windows
|
|||
|
||||
}
|
||||
|
||||
public void SaveSettings()
|
||||
{
|
||||
InputPage.InputView?.SaveCurrentProfile();
|
||||
}
|
||||
|
||||
|
||||
private void Load()
|
||||
{
|
||||
|
|
@ -67,9 +73,9 @@ namespace Ryujinx.Ava.UI.Windows
|
|||
{
|
||||
switch (navItem.Tag.ToString())
|
||||
{
|
||||
//case nameof(InputPage):
|
||||
// NavPanel.Content = InputPage;
|
||||
// break;
|
||||
case nameof(InputPage):
|
||||
NavPanel.Content = InputPage;
|
||||
break;
|
||||
case nameof(SystemPage):
|
||||
SystemPage.ViewModel = ViewModel;
|
||||
NavPanel.Content = SystemPage;
|
||||
|
|
|
|||
Loading…
Reference in a new issue