Atari - console buttons now work in input config dialog
This commit is contained in:
parent
e4acb65ed1
commit
cb3df74105
|
@ -301,13 +301,20 @@ namespace BizHawk.MultiClient
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
mainController = controller;
|
mainController = controller;
|
||||||
if (prev >= PADS[platform])
|
if (platform == "AtariConsoleButtons")
|
||||||
|
{
|
||||||
|
prev = 0;
|
||||||
|
}
|
||||||
|
else if (prev >= PADS[platform])
|
||||||
{
|
{
|
||||||
prev -= PADS[platform];
|
prev -= PADS[platform];
|
||||||
controller = autoController;
|
controller = autoController;
|
||||||
}
|
}
|
||||||
switch (platform)
|
switch (platform)
|
||||||
{
|
{
|
||||||
|
case "AtariConsoleButtons":
|
||||||
|
((Atari2600ConsoleButtonsTemplate)mainController[0]).Enabled = IDX_CONTROLLERENABLED.Checked;
|
||||||
|
break;
|
||||||
case "Atari":
|
case "Atari":
|
||||||
((Atari2600ControllerTemplate)mainController[prev]).Enabled = IDX_CONTROLLERENABLED.Checked;
|
((Atari2600ControllerTemplate)mainController[prev]).Enabled = IDX_CONTROLLERENABLED.Checked;
|
||||||
break;
|
break;
|
||||||
|
@ -402,9 +409,6 @@ namespace BizHawk.MultiClient
|
||||||
Label TempLabel = Labels[button] as Label;
|
Label TempLabel = Labels[button] as Label;
|
||||||
TempLabel.Dispose();
|
TempLabel.Dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*hacky add atari controller stuff*/
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void InputConfig_Load(object sender, EventArgs e)
|
private void InputConfig_Load(object sender, EventArgs e)
|
||||||
|
|
Loading…
Reference in New Issue