fix incorrect ReloadConfiguration placement
This commit is contained in:
parent
6ecdf690be
commit
f024c8a695
@ -52,6 +52,8 @@ namespace Ryujinx.Ava.Input
|
|||||||
List<InputConfig> newConfig = ControllerAssignmentManager.GetConfiguredControllers(
|
List<InputConfig> newConfig = ControllerAssignmentManager.GetConfiguredControllers(
|
||||||
controllers, oldConfig, out bool hasNewControllersConnected);
|
controllers, oldConfig, out bool hasNewControllersConnected);
|
||||||
|
|
||||||
|
_viewModel.AppHost?.NpadManager.ReloadConfiguration(newConfig, _configurationState.Hid.EnableKeyboard, _configurationState.Hid.EnableMouse);
|
||||||
|
|
||||||
if (!hasNewControllersConnected)
|
if (!hasNewControllersConnected)
|
||||||
{
|
{
|
||||||
// there is no *new* controller, we must switch the order of the controllers in
|
// there is no *new* controller, we must switch the order of the controllers in
|
||||||
@ -60,7 +62,6 @@ namespace Ryujinx.Ava.Input
|
|||||||
newConfig = ControllerAssignmentManager.ReorderControllers(newConfig, oldConfig);
|
newConfig = ControllerAssignmentManager.ReorderControllers(newConfig, oldConfig);
|
||||||
}
|
}
|
||||||
|
|
||||||
_viewModel.AppHost?.NpadManager.ReloadConfiguration(newConfig, _configurationState.Hid.EnableKeyboard, _configurationState.Hid.EnableMouse);
|
|
||||||
_configurationState.Hid.InputConfig.Value = newConfig;
|
_configurationState.Hid.InputConfig.Value = newConfig;
|
||||||
|
|
||||||
// we want to save the configuration only if a *new* controller was connected
|
// we want to save the configuration only if a *new* controller was connected
|
||||||
|
Loading…
x
Reference in New Issue
Block a user