16 :
Connector(pluggingController_,
"audiokeyboardport",
23 if (newData != data) {
42 return "MSX-AUDIO keyboard connector";
47 return "Y8950 Keyboard Port";
58 return *checked_cast<Y8950KeyboardDevice*>(&
getPlugged());
61template<
typename Archive>
64 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 override
A Connector belong to a certain class.
byte read(EmuTime::param time) const
void write(byte data, EmuTime::param time)
std::string_view getDescription() const override
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)
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)