Fixed exception when no joystick is present.

This commit is contained in:
the_fiddler 2009-03-01 01:20:26 +00:00
parent 8b31086055
commit f46deb7103

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