openMSX
RenShaTurbo.cc
Go to the documentation of this file.
1 #include "RenShaTurbo.hh"
2 #include "XMLElement.hh"
3 #include "Autofire.hh"
4 #include "memory.hh"
5 
6 namespace openmsx {
7 
9  const XMLElement& machineConfig)
10 {
11  if (auto* config = machineConfig.findChild("RenShaTurbo")) {
12  int min_ints = config->getChildDataAsInt("min_ints", 47);
13  int max_ints = config->getChildDataAsInt("max_ints", 221);
14  autofire = make_unique<Autofire>(
15  commandController, min_ints, max_ints, "renshaturbo");
16  }
17 }
18 
20 {
21 }
22 
24 {
25  return autofire ? autofire->getSignal(time) : false;
26 }
27 
28 } // namespace openmsx
const XMLElement * findChild(string_ref name) const
Definition: XMLElement.cc:132
bool getSignal(EmuTime::param time)
Get the output signal in negative logic.
Definition: RenShaTurbo.cc:23
RenShaTurbo(CommandController &commandController, const XMLElement &machineConfig)
Definition: RenShaTurbo.cc:8
commandController(commandController_)