2011-01-29 00:10:08 +00:00
|
|
|
|
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;
|
|
|
|
|
|
|
|
|
|
namespace BizHawk.MultiClient
|
|
|
|
|
{
|
|
|
|
|
public partial class InputConfig : Form
|
|
|
|
|
{
|
2011-01-29 01:25:57 +00:00
|
|
|
|
const string ControllerStr = "Configure Controllers - ";
|
2011-01-29 00:10:08 +00:00
|
|
|
|
public InputConfig()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
}
|
|
|
|
|
|
2011-01-29 01:25:57 +00:00
|
|
|
|
private void DoSMS()
|
|
|
|
|
{
|
|
|
|
|
this.Text = ControllerStr + "SMS / GG / SG-1000";
|
|
|
|
|
|
|
|
|
|
Button Up = new Button();
|
|
|
|
|
Button Down = new Button();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void DoPCE()
|
|
|
|
|
{
|
|
|
|
|
this.Text = ControllerStr + "PCEjin / SGX";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void DoGen()
|
|
|
|
|
{
|
|
|
|
|
this.Text = ControllerStr + "Sega Genesis";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void DoTI83()
|
|
|
|
|
{
|
|
|
|
|
this.Text = ControllerStr + "TI-83";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void DoGameBoy()
|
|
|
|
|
{
|
|
|
|
|
this.Text = ControllerStr + "Gameboy";
|
|
|
|
|
}
|
|
|
|
|
|
2011-01-29 00:10:08 +00:00
|
|
|
|
private void InputConfig_Load(object sender, EventArgs e)
|
|
|
|
|
{
|
2011-01-29 00:33:14 +00:00
|
|
|
|
//Determine the System currently loaded, and set that one up first, if null emulator set, what is the default?
|
2011-01-29 01:25:57 +00:00
|
|
|
|
if (!(Global.Emulator is NullEmulator))
|
|
|
|
|
{
|
|
|
|
|
switch (Global.Game.System)
|
|
|
|
|
{
|
|
|
|
|
case "SMS":
|
|
|
|
|
case "SG":
|
|
|
|
|
case "GG":
|
|
|
|
|
DoSMS();
|
|
|
|
|
break;
|
|
|
|
|
case "PCE":
|
|
|
|
|
case "SGX":
|
|
|
|
|
DoPCE();
|
|
|
|
|
break;
|
|
|
|
|
case "GEN":
|
|
|
|
|
DoGen();
|
|
|
|
|
break;
|
|
|
|
|
case "TI83":
|
|
|
|
|
DoTI83();
|
|
|
|
|
break;
|
|
|
|
|
case "GB":
|
|
|
|
|
DoGameBoy();
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
DoSMS();
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
DoSMS();
|
2011-01-29 00:10:08 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void OK_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
this.Close();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void Cancel_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
this.Close();
|
|
|
|
|
}
|
2011-01-29 01:25:57 +00:00
|
|
|
|
|
|
|
|
|
private void SystemComboBox_SelectedIndexChanged(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
switch (SystemComboBox.SelectedItem.ToString())
|
|
|
|
|
{
|
|
|
|
|
case "SMS / GG / SG-1000":
|
|
|
|
|
DoSMS();
|
|
|
|
|
break;
|
|
|
|
|
case "PC Engine / SGX":
|
|
|
|
|
DoPCE();
|
|
|
|
|
break;
|
|
|
|
|
case "Gameboy":
|
|
|
|
|
DoGameBoy();
|
|
|
|
|
break;
|
|
|
|
|
case "Sega Genesis":
|
|
|
|
|
DoGen();
|
|
|
|
|
break;
|
|
|
|
|
case "TI-83":
|
|
|
|
|
DoTI83();
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
2011-01-29 00:10:08 +00:00
|
|
|
|
}
|
|
|
|
|
}
|