12 :
Connector(pluggingController_,
"audiokeyboardport",
19 if (newData != data) {
38 return "MSX-AUDIO keyboard connector";
43 return "Y8950 Keyboard Port";
54 return *checked_cast<Y8950KeyboardDevice*>(&
getPlugged());
57template<
typename Archive>
60 ar.template serializeBase<Connector>(*
this);
Represents something you can plug devices into.
Pluggable & getPlugged() const
Returns the Pluggable currently plugged in.
virtual void plug(Pluggable &device, EmuTime::param time)
This plugs a Pluggable in this Connector.
Central administration of Connectors and Pluggables.
std::string_view getClass() const final
A Connector belong to a certain class.
void write(byte data, EmuTime::param time)
std::string_view getDescription() const final
Get a description for this connector.
void plug(Pluggable &dev, EmuTime::param time) override
This plugs a Pluggable in this Connector.
Y8950KeyboardConnector(PluggingController &pluggingController)
byte peek(EmuTime::param time) const
void serialize(Archive &ar, unsigned version)
byte read(EmuTime::param time)
Y8950KeyboardDevice & getPluggedKeyb() const
virtual void write(byte data, EmuTime::param time)=0
Send data to the device.
virtual byte read(EmuTime::param time)=0
Read data from the device.
This file implemented 3 utility functions:
#define INSTANTIATE_SERIALIZE_METHODS(CLASS)