mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-04-21 18:13:14 +02:00
Compare commits
2 commits
9b0b2766bd
...
c01f5ac68f
Author | SHA1 | Date | |
---|---|---|---|
![]() |
c01f5ac68f | ||
![]() |
f46fba4a15 |
1 changed files with 9 additions and 7 deletions
|
@ -349,7 +349,6 @@ namespace Ryujinx.Ava.UI.ViewModels.Input
|
|||
ConfigViewModel = new ControllerInputViewModel(this, new GamepadInputConfig(controllerInputConfig), VisualStick);
|
||||
}
|
||||
|
||||
FindPairedDeviceInConfigFile();
|
||||
}
|
||||
|
||||
private void FindPairedDeviceInConfigFile()
|
||||
|
@ -483,7 +482,7 @@ namespace Ryujinx.Ava.UI.ViewModels.Input
|
|||
RevertChanges();
|
||||
|
||||
_isChangeTrackingActive = true;// Enable configuration change tracking
|
||||
|
||||
|
||||
}
|
||||
|
||||
private string GetCurrentGamepadId()
|
||||
|
@ -946,11 +945,14 @@ namespace Ryujinx.Ava.UI.ViewModels.Input
|
|||
|
||||
public void RevertChanges()
|
||||
{
|
||||
Device = Devices.ToList().FindIndex(d => d.Id == RevertDeviceId);
|
||||
LoadDevice();
|
||||
LoadConfiguration();
|
||||
OnPropertyChanged();
|
||||
IsModified = false;
|
||||
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);
|
||||
|
||||
LoadDevice();
|
||||
LoadConfiguration();
|
||||
|
||||
OnPropertyChanged();
|
||||
IsModified = false;
|
||||
}
|
||||
|
||||
public void Save()
|
||||
|
|
Loading…
Add table
Reference in a new issue