Compare commits

..

1 commit

Author SHA1 Message Date
Goodfeat
9b0b2766bd Merge branch 'Master_PR' into 'master'
Improvements and fixes to issues in the controller input menu

See merge request ryubing/ryujinx!2
2025-04-19 06:38:22 -05:00

View file

@ -349,6 +349,7 @@ namespace Ryujinx.Ava.UI.ViewModels.Input
ConfigViewModel = new ControllerInputViewModel(this, new GamepadInputConfig(controllerInputConfig), VisualStick); ConfigViewModel = new ControllerInputViewModel(this, new GamepadInputConfig(controllerInputConfig), VisualStick);
} }
FindPairedDeviceInConfigFile();
} }
private void FindPairedDeviceInConfigFile() private void FindPairedDeviceInConfigFile()
@ -945,12 +946,9 @@ namespace Ryujinx.Ava.UI.ViewModels.Input
public void RevertChanges() public void RevertChanges()
{ {
LoadConfiguration(); // configuration preload is required if the paired gamepad was disconnected but was changed to another gamepad
Device = Devices.ToList().FindIndex(d => d.Id == RevertDeviceId); Device = Devices.ToList().FindIndex(d => d.Id == RevertDeviceId);
LoadDevice(); LoadDevice();
LoadConfiguration(); LoadConfiguration();
OnPropertyChanged(); OnPropertyChanged();
IsModified = false; IsModified = false;
} }