mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-04-17 16:31:55 +00:00
Fixed exception when no joystick is present.
This commit is contained in:
parent
8b31086055
commit
f46deb7103
|
@ -123,7 +123,8 @@ namespace Examples.Tests
|
|||
this.BeginInvoke(ControlLogJoystickButtonUp, this, sender, args);
|
||||
};
|
||||
}
|
||||
comboBoxActiveJoystick.SelectedIndex = 0;
|
||||
if (comboBoxActiveJoystick.Items.Count > 0)
|
||||
comboBoxActiveJoystick.SelectedIndex = 0;
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue