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
32 lines
846 B
C#
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
|
|
}
|
|
|