Feature: Auto-Assign Controllers #706

Open
uncavo-hdmi wants to merge 31 commits from uncavo-hdmi/auto-assign-controller into master
2 changed files with 1 additions and 3 deletions
Showing only changes of commit 5513de93e5 - Show all commits

View File

@ -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

View File

@ -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 ?? [];