Atari 7800 - support difficulty switches when using the default proline controller, fixes #726

This commit is contained in:
adelikat 2016-11-08 17:26:42 -06:00
parent b24eb2293f
commit 6b29c28d07
1 changed files with 4 additions and 0 deletions

View File

@ -151,6 +151,8 @@ namespace BizHawk.Emulation.Cores.Atari.Atari7800
"Reset",
"Select",
"Pause",
"Left Difficulty", // better not put P# on these as they might not correspond to player numbers
"Right Difficulty",
// ports
"P1 Up", "P1 Down", "P1 Left", "P1 Right", "P1 Trigger", "P1 Trigger 2",
"P2 Up", "P2 Down", "P2 Left", "P2 Right", "P2 Trigger", "P2 Trigger 2"
@ -225,6 +227,8 @@ namespace BizHawk.Emulation.Cores.Atari.Atari7800
s.RaiseInput(0, MachineInput.Reset, c["Reset"]);
s.RaiseInput(0, MachineInput.Select, c["Select"]);
s.RaiseInput(0, MachineInput.Color, c["Pause"]);
s.RaiseInput(0, MachineInput.LeftDifficulty, c["Left Difficulty"]);
s.RaiseInput(0, MachineInput.RightDifficulty, c["Right Difficulty"]);
}
static void ConvertDirections(IController c, InputState s, int p)
{