From a0594e81698066293feb0e94eecea84fe952399d Mon Sep 17 00:00:00 2001 From: Vova Date: Sun, 23 Feb 2025 10:20:42 +1000 Subject: [PATCH 01/12] 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 | 15 +- 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, 314 insertions(+), 40 deletions(-) diff --git a/src/Ryujinx/Assets/Styles/Styles.xaml b/src/Ryujinx/Assets/Styles/Styles.xaml index 5523f551a..03913ecf1 100644 --- a/src/Ryujinx/Assets/Styles/Styles.xaml +++ b/src/Ryujinx/Assets/Styles/Styles.xaml @@ -1,8 +1,8 @@ - + xmlns:windowing="clr-namespace:FluentAvalonia.UI.Windowing;assembly=FluentAvalonia"> @@ -41,7 +41,7 @@ - + + +