mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-14 10:06:52 +00:00
Copy the value of InputConfig to a new array before iterating (#1271)
This commit is contained in:
parent
96951b7d04
commit
fcd187ce42
1 changed files with 1 additions and 1 deletions
|
@ -395,7 +395,7 @@ namespace Ryujinx.Ui
|
||||||
|
|
||||||
List<GamepadInput> gamepadInputs = new List<GamepadInput>();
|
List<GamepadInput> gamepadInputs = new List<GamepadInput>();
|
||||||
|
|
||||||
foreach (InputConfig inputConfig in ConfigurationState.Instance.Hid.InputConfig.Value)
|
foreach (InputConfig inputConfig in ConfigurationState.Instance.Hid.InputConfig.Value.ToArray())
|
||||||
{
|
{
|
||||||
ControllerKeys currentButton = 0;
|
ControllerKeys currentButton = 0;
|
||||||
JoystickPosition leftJoystick = new JoystickPosition();
|
JoystickPosition leftJoystick = new JoystickPosition();
|
||||||
|
|
Loading…
Reference in a new issue