Fixed exception when no joystick is present.

This commit is contained in:
the_fiddler 2009-03-01 01:20:26 +00:00
parent f33d2ff498
commit 1f11e3f38c

View file

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