code clean up; fix not loading EnableAutoAssign.Value from config file on startup
This commit is contained in:
parent
9cccaac9d3
commit
5513de93e5
@ -22,8 +22,6 @@ namespace Ryujinx.Ava
|
||||
private readonly MainWindowViewModel _viewModel;
|
||||
private readonly ConfigurationState _configurationState;
|
||||
|
||||
private readonly IGamepad[] _controllers;
|
||||
|
||||
public AutoAssignController(InputManager inputManager, MainWindowViewModel mainWindowViewModel)
|
||||
{
|
||||
_inputManager = inputManager;
|
||||
@ -74,7 +72,6 @@ namespace Ryujinx.Ava
|
||||
|
||||
private List<InputConfig> GetOrderedConfig(List<IGamepad> controllers, List<InputConfig> oldConfig)
|
||||
{
|
||||
// Dictionary to store assigned PlayerIndexes
|
||||
Dictionary<int, InputConfig> playerIndexMap = new();
|
||||
|
||||
// Convert oldConfig into a dictionary for quick lookup by controller Id
|
||||
|
@ -138,6 +138,7 @@ namespace Ryujinx.Ava.Utilities.Configuration
|
||||
|
||||
Hid.EnableKeyboard.Value = cff.EnableKeyboard;
|
||||
Hid.EnableMouse.Value = cff.EnableMouse;
|
||||
Hid.EnableAutoAssign.Value = cff.EnableAutoAssign;
|
||||
Hid.Hotkeys.Value = cff.Hotkeys;
|
||||
Hid.InputConfig.Value = cff.InputConfig ?? [];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user