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