Added drive board and lamp raw outputs (submitted by SailorSat)

This commit is contained in:
Bart Trzynadlowski 2016-06-07 01:51:16 +00:00
parent 8440bc7f03
commit b0911afd1f
3 changed files with 10 additions and 3 deletions

View file

@ -589,6 +589,8 @@ void CModel3::WriteInputs(unsigned reg, UINT8 data)
case 0x10: // Drive board
if (DriveBoard.IsAttached())
DriveBoard.Write(data);
if (NULL != Outputs) // TODO - check gameInputs
Outputs->SetValue(OutputRawDrive, data);
break;
case 0x14: // Lamp outputs (Daytona/Scud Race/Sega Rally/Le Mans 24)
@ -600,6 +602,7 @@ void CModel3::WriteInputs(unsigned reg, UINT8 data)
Outputs->SetValue(OutputLampView3, !!(data&0x20));
Outputs->SetValue(OutputLampView4, !!(data&0x40));
Outputs->SetValue(OutputLampLeader, !!(data&0x80));
Outputs->SetValue(OutputRawLamps, data);
}
break;

View file

@ -33,7 +33,9 @@ const char *COutputs::s_outputNames[] =
"LampView2",
"LampView3",
"LampView4",
"LampLeader"
"LampLeader",
"RawDrive",
"RawLamps"
};
const char *COutputs::GetOutputName(EOutputs output)

View file

@ -41,10 +41,12 @@ enum EOutputs
OutputLampView2,
OutputLampView3,
OutputLampView4,
OutputLampLeader
OutputLampLeader,
OutputRawDrive,
OutputRawLamps
};
#define NUM_OUTPUTS 7
#define NUM_OUTPUTS 9
struct GameInfo;