mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2025-04-10 19:15:14 +00:00
Added drive board and lamp raw outputs (submitted by SailorSat)
This commit is contained in:
parent
8440bc7f03
commit
b0911afd1f
|
@ -589,6 +589,8 @@ void CModel3::WriteInputs(unsigned reg, UINT8 data)
|
||||||
case 0x10: // Drive board
|
case 0x10: // Drive board
|
||||||
if (DriveBoard.IsAttached())
|
if (DriveBoard.IsAttached())
|
||||||
DriveBoard.Write(data);
|
DriveBoard.Write(data);
|
||||||
|
if (NULL != Outputs) // TODO - check gameInputs
|
||||||
|
Outputs->SetValue(OutputRawDrive, data);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 0x14: // Lamp outputs (Daytona/Scud Race/Sega Rally/Le Mans 24)
|
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(OutputLampView3, !!(data&0x20));
|
||||||
Outputs->SetValue(OutputLampView4, !!(data&0x40));
|
Outputs->SetValue(OutputLampView4, !!(data&0x40));
|
||||||
Outputs->SetValue(OutputLampLeader, !!(data&0x80));
|
Outputs->SetValue(OutputLampLeader, !!(data&0x80));
|
||||||
|
Outputs->SetValue(OutputRawLamps, data);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,9 @@ const char *COutputs::s_outputNames[] =
|
||||||
"LampView2",
|
"LampView2",
|
||||||
"LampView3",
|
"LampView3",
|
||||||
"LampView4",
|
"LampView4",
|
||||||
"LampLeader"
|
"LampLeader",
|
||||||
|
"RawDrive",
|
||||||
|
"RawLamps"
|
||||||
};
|
};
|
||||||
|
|
||||||
const char *COutputs::GetOutputName(EOutputs output)
|
const char *COutputs::GetOutputName(EOutputs output)
|
||||||
|
|
|
@ -41,10 +41,12 @@ enum EOutputs
|
||||||
OutputLampView2,
|
OutputLampView2,
|
||||||
OutputLampView3,
|
OutputLampView3,
|
||||||
OutputLampView4,
|
OutputLampView4,
|
||||||
OutputLampLeader
|
OutputLampLeader,
|
||||||
|
OutputRawDrive,
|
||||||
|
OutputRawLamps
|
||||||
};
|
};
|
||||||
|
|
||||||
#define NUM_OUTPUTS 7
|
#define NUM_OUTPUTS 9
|
||||||
|
|
||||||
struct GameInfo;
|
struct GameInfo;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue