openMSX
Public Member Functions | List of all members
openmsx::Autofire Class Referencefinal

Autofire is a device that is between two other devices and outside the bus. More...

#include <Autofire.hh>

Inheritance diagram for openmsx::Autofire:
Inheritance graph
[legend]
Collaboration diagram for openmsx::Autofire:
Collaboration graph
[legend]

Public Member Functions

 Autofire (CommandController &commandController, unsigned newMinInts, unsigned newMaxInts, std::string_view name)
 
 ~Autofire ()
 
bool getSignal (EmuTime::param time)
 Get the output signal in negative logic. More...
 

Detailed Description

Autofire is a device that is between two other devices and outside the bus.

For example, between the keyboard and the PPI or between a joyport connecter and the PSG.

There can be multiple autofire circuits. For example, one used by the Ren-Sha Turbo and another one built into a joystick.

Definition at line 22 of file Autofire.hh.

Constructor & Destructor Documentation

◆ Autofire()

openmsx::Autofire::Autofire ( CommandController commandController,
unsigned  newMinInts,
unsigned  newMaxInts,
std::string_view  name 
)

Definition at line 7 of file Autofire.cc.

References openmsx::Subject< T >::attach().

◆ ~Autofire()

openmsx::Autofire::~Autofire ( )

Member Function Documentation

◆ getSignal()

bool openmsx::Autofire::getSignal ( EmuTime::param  time)

Get the output signal in negative logic.

Returns
When auto-fire is on, result will alternate between true and false. When auto-fire if off result is false.

Definition at line 38 of file Autofire.cc.

References openmsx::IntegerSetting::getInt(), and openmsx::DynamicClock::getTicksTill().


The documentation for this class was generated from the following files: