Glatzemann 3765f00151 - fixed a minor issue with pathes in MSI-Installer build script
- added creators for concrete InputDevice instances
- added a factory to manage InputDeviceCreators which are located in AddIn assemblies
- implemented some InputDeviceCreators in ANX.InputSystem.Windows.XInput as reference
- created the new InputSystem: ANX.InputSystem.Standard which is the default container for the new InputDevices. It is replaceable by the ANX.InputSystem.Recording e.g.
- added ANX.InputSystem.Standard to build script and MSI-Installer build script
- added ANX.InputSystem.Recording to the MSI-Installer build script
- implemented AvailableNetworkSessions (and fixed another wrong class reported by ANXStatusComparer)
- updated WindowsGame sample to support only one InputSystem at the time (replaced multi SelectBox with ComboBox)
- renamed ANX.InputSystem.Windows.XInput to ANX.InputDevices.Windows.XInput because it no longer contains a InputSystem but InputDevices

This version is UNSTABLE and not TESTED because of massive changes regarding the InputSystem !!!
2011-12-14 19:22:17 +00:00

36 lines
1.0 KiB
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)
{
AddInSystemFactory.Instance.PreferredRenderSystem = selector.cbRenderSystem.Text;
AddInSystemFactory.Instance.PreferredSoundSystem = selector.cbAudioSystem.Text;
AddInSystemFactory.Instance.PreferredInputSystem = selector.cbInputSystem.Text;
using (Game1 game = new Game1())
{
game.Run();
}
}
}
}
#endif
}