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,6 +123,7 @@ namespace Examples.Tests
this.BeginInvoke(ControlLogJoystickButtonUp, this, sender, args); this.BeginInvoke(ControlLogJoystickButtonUp, this, sender, args);
}; };
} }
if (comboBoxActiveJoystick.Items.Count > 0)
comboBoxActiveJoystick.SelectedIndex = 0; comboBoxActiveJoystick.SelectedIndex = 0;
#endregion #endregion