Glatzemann 972f7121e8 renamed CurrentCreator to DefaultCreator project wide
extended InputSystem selector in WindowsGame sample
fixed some interface issues in XInput InputSystem
added FormatConvert to InputSystem XInput to translate GamePadButtons from XInput to ANX
2011-11-11 15:21:41 +00:00

32 lines
846 B
C#

using System;
using ANX.Framework.NonXNA;
using System.Windows.Forms;
namespace WindowsGame1
{
#if WINDOWS || XBOX
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
static void Main(string[] args)
{
Application.EnableVisualStyles();
AddInSystemFactory.Instance.Initialize();
AddInSelector selector = new AddInSelector();
if (selector.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
using (Game1 game = new Game1(selector.cbRenderSystem.Text, selector.cbInputSystems.CheckedItems[0].ToString(), selector.cbAudioSystem.Text))
{
game.Run();
}
}
}
}
#endif
}