12class MSXEventDistributor;
13class StateChangeDistributor;
23 template<
typename Archive>
24 void serialize(Archive& ar,
unsigned version);
28 [[nodiscard]] std::string_view getName()
const override;
29 [[nodiscard]] std::string_view getDescription()
const override;
30 void plugHelper(
Connector& connector, EmuTime::param time)
override;
31 void unplugHelper(EmuTime::param time)
override;
34 [[nodiscard]] uint8_t read(EmuTime::param time)
override;
35 void write(uint8_t value, EmuTime::param time)
override;
38 void signalMSXEvent(
const Event& event,
39 EmuTime::param time)
noexcept override;
41 void signalStateChange(
const StateChange& event)
override;
42 void stopReplay(EmuTime::param time)
noexcept override;
48 EmuTime lastPulse = EmuTime::zero();
49 uint8_t analogValue = 128;
50 uint8_t lastInput = 0;
Represents something you can plug devices into.
Paddle(MSXEventDistributor &eventDistributor, StateChangeDistributor &stateChangeDistributor)
void serialize(Archive &ar, unsigned version)
Base class for all external MSX state changing events.
This file implemented 3 utility functions: