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 (const XMLElement* 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.get() ? autofire->getSignal(time) : false;
26 }
27 
28 } // namespace openmsx