From 6381f44b0be2e22178f16f81ed35f0cf04b45c42 Mon Sep 17 00:00:00 2001 From: Vova Date: Sat, 22 Feb 2025 23:15:34 +1000 Subject: [PATCH] Improved interaction with "Input" settings. - paired devices have notifications that they are configured and require connection - paired devices load the configuration when connected - A notification appears when changing control configuration settings. - Now control settings will be saved only when they are changed - Added a button to roll back changes to the previously saved state - Fixed a bug: when switching the "player", if the "input device" and "controller type" settings were changed, the save dialog box did not appear. - "Motion", "Rumble" and "Led" also have events notifying about changes --- src/Ryujinx/Assets/Styles/Styles.xaml | 29 +++- src/Ryujinx/Assets/locales.json | 100 +++++++++++++ .../Input/ControllerInputViewModel.cs | 7 +- .../UI/ViewModels/Input/InputViewModel.cs | 134 ++++++++++++++++-- .../Views/Input/ControllerInputView.axaml.cs | 18 ++- src/Ryujinx/UI/Views/Input/InputView.axaml | 68 +++++++-- src/Ryujinx/UI/Views/Input/InputView.axaml.cs | 5 +- .../UI/Views/Input/KeyboardInputView.axaml.cs | 7 +- 8 files changed, 329 insertions(+), 39 deletions(-) diff --git a/src/Ryujinx/Assets/Styles/Styles.xaml b/src/Ryujinx/Assets/Styles/Styles.xaml index 5523f551a..78a35ce3e 100644 --- a/src/Ryujinx/Assets/Styles/Styles.xaml +++ b/src/Ryujinx/Assets/Styles/Styles.xaml @@ -1,8 +1,9 @@ - + xmlns:windowing="clr-namespace:FluentAvalonia.UI.Windowing;assembly=FluentAvalonia"> @@ -41,6 +42,15 @@ + + + + + @@ -331,6 +341,21 @@ + + +