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,14 +946,11 @@ 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();
LoadConfiguration();
LoadDevice(); OnPropertyChanged();
LoadConfiguration(); IsModified = false;
OnPropertyChanged();
IsModified = false;
} }
public void Save() public void Save()