- 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 !!!
51 lines
1.5 KiB
C#
51 lines
1.5 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Windows.Forms;
|
|
using ANX.Framework.NonXNA;
|
|
using ANX.Framework;
|
|
|
|
namespace WindowsGame1
|
|
{
|
|
public partial class AddInSelector : Form
|
|
{
|
|
public AddInSelector()
|
|
{
|
|
InitializeComponent();
|
|
|
|
pictureBox1.Image = Resource1.Logo;
|
|
}
|
|
|
|
private void AddInSelector_Load(object sender, EventArgs e)
|
|
{
|
|
foreach (IRenderSystemCreator renderSystemCreator in AddInSystemFactory.Instance.GetCreators<IRenderSystemCreator>())
|
|
{
|
|
cbRenderSystem.Items.Add(renderSystemCreator.Name);
|
|
}
|
|
cbRenderSystem.SelectedIndex = 0;
|
|
|
|
foreach (IInputSystemCreator inputSystemCreator in AddInSystemFactory.Instance.GetCreators<IInputSystemCreator>())
|
|
{
|
|
cbInputSystem.Items.Add(inputSystemCreator.Name);
|
|
}
|
|
cbInputSystem.SelectedIndex = 0;
|
|
|
|
foreach (ISoundSystemCreator soundSystemCreator in AddInSystemFactory.Instance.GetCreators<ISoundSystemCreator>())
|
|
{
|
|
cbAudioSystem.Items.Add(soundSystemCreator.Name);
|
|
}
|
|
cbAudioSystem.SelectedIndex = 0;
|
|
}
|
|
|
|
private void button1_Click(object sender, EventArgs e)
|
|
{
|
|
this.DialogResult = System.Windows.Forms.DialogResult.OK;
|
|
this.Close();
|
|
}
|
|
}
|
|
}
|