Delete ColecoControllerSettings.cs

This commit is contained in:
alyosha-tas 2017-03-01 10:53:05 +08:00 committed by GitHub
parent c3b7543cfe
commit 76a9328b7b
1 changed files with 0 additions and 61 deletions

View File

@ -1,61 +0,0 @@
using System;
using System.Data;
using System.Linq;
using System.Windows.Forms;
using BizHawk.Client.Common;
using BizHawk.Emulation.Cores.ColecoVision;
namespace BizHawk.Client.EmuHawk
{
public partial class ColecoControllerSettings : Form
{
private ColecoVision.ColecoSyncSettings _syncSettings;
public ColecoControllerSettings()
{
InitializeComponent();
}
private void ColecoControllerSettings_Load(object sender, EventArgs e)
{
_syncSettings = (Global.Emulator as ColecoVision)._syncSettings.Clone();
var possibleControllers = ColecoVisionControllerDeck.ValidControllerTypes.Select(t => t.Key);
foreach (var val in possibleControllers)
{
Port1ComboBox.Items.Add(val);
Port2ComboBox.Items.Add(val);
}
Port1ComboBox.SelectedItem = _syncSettings.Port1;
Port2ComboBox.SelectedItem = _syncSettings.Port2;
}
private void OkBtn_Click(object sender, EventArgs e)
{
bool changed =
_syncSettings.Port1 != Port1ComboBox.SelectedItem.ToString()
|| _syncSettings.Port2 != Port2ComboBox.SelectedItem.ToString();
if (changed)
{
_syncSettings.Port1 = Port1ComboBox.SelectedItem.ToString();
_syncSettings.Port2 = Port2ComboBox.SelectedItem.ToString();
GlobalWin.MainForm.PutCoreSyncSettings(_syncSettings);
}
DialogResult = DialogResult.OK;
Close();
}
private void CancelBtn_Click(object sender, EventArgs e)
{
GlobalWin.OSD.AddMessage("Controller settings aborted");
DialogResult = DialogResult.Cancel;
Close();
}
}
}