Hook up atari controller 2 to input config dialog.
This commit is contained in:
parent
684252a816
commit
715d46ed1d
|
@ -72,8 +72,8 @@ namespace BizHawk.MultiClient
|
||||||
ControllerImage.Image = BizHawk.MultiClient.Properties.Resources.atari_controller;
|
ControllerImage.Image = BizHawk.MultiClient.Properties.Resources.atari_controller;
|
||||||
int jpad = this.ControllComboBox.SelectedIndex;
|
int jpad = this.ControllComboBox.SelectedIndex;
|
||||||
string[] ButtonMappings = new string[AtariControlList.Length];
|
string[] ButtonMappings = new string[AtariControlList.Length];
|
||||||
|
int controllers = 2;
|
||||||
if (jpad < 2)
|
if (jpad < controllers)
|
||||||
{
|
{
|
||||||
ButtonMappings[0] = Global.Config.Atari2600Controller[jpad].Up;
|
ButtonMappings[0] = Global.Config.Atari2600Controller[jpad].Up;
|
||||||
ButtonMappings[1] = Global.Config.Atari2600Controller[jpad].Down;
|
ButtonMappings[1] = Global.Config.Atari2600Controller[jpad].Down;
|
||||||
|
@ -84,12 +84,12 @@ namespace BizHawk.MultiClient
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ButtonMappings[0] = Global.Config.Atari2600AutoController[1 - jpad].Up;
|
ButtonMappings[0] = Global.Config.Atari2600AutoController[controllers - jpad].Up;
|
||||||
ButtonMappings[1] = Global.Config.Atari2600AutoController[1 - jpad].Down;
|
ButtonMappings[1] = Global.Config.Atari2600AutoController[controllers - jpad].Down;
|
||||||
ButtonMappings[2] = Global.Config.Atari2600AutoController[1 - jpad].Left;
|
ButtonMappings[2] = Global.Config.Atari2600AutoController[controllers - jpad].Left;
|
||||||
ButtonMappings[3] = Global.Config.Atari2600AutoController[1 - jpad].Right;
|
ButtonMappings[3] = Global.Config.Atari2600AutoController[controllers - jpad].Right;
|
||||||
ButtonMappings[4] = Global.Config.Atari2600AutoController[1 - jpad].Button;
|
ButtonMappings[4] = Global.Config.Atari2600AutoController[controllers - jpad].Button;
|
||||||
IDX_CONTROLLERENABLED.Checked = Global.Config.Atari2600AutoController[1 - jpad].Enabled;
|
IDX_CONTROLLERENABLED.Checked = Global.Config.Atari2600AutoController[controllers - jpad].Enabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
Changed = true;
|
Changed = true;
|
||||||
|
@ -1066,7 +1066,7 @@ namespace BizHawk.MultiClient
|
||||||
this.Height = prevHeight;
|
this.Height = prevHeight;
|
||||||
break;
|
break;
|
||||||
case "Atari":
|
case "Atari":
|
||||||
joypads = 1;
|
joypads = 2;
|
||||||
this.Width = prevWidth;
|
this.Width = prevWidth;
|
||||||
this.Height = prevHeight;
|
this.Height = prevHeight;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue