From 7aa949fcf73e6ec355b62a67099e43ec72183991 Mon Sep 17 00:00:00 2001 From: Vova Date: Sun, 23 Feb 2025 10:20:42 +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 | 9 ++ 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, 311 insertions(+), 37 deletions(-) diff --git a/src/Ryujinx/Assets/Styles/Styles.xaml b/src/Ryujinx/Assets/Styles/Styles.xaml index 7793f5341..20635ec40 100644 --- a/src/Ryujinx/Assets/Styles/Styles.xaml +++ b/src/Ryujinx/Assets/Styles/Styles.xaml @@ -339,6 +339,15 @@ + +