11class PluggingController;
17 [[nodiscard]]
virtual uint8_t
read(EmuTime::param time) = 0;
18 virtual void write(uint8_t value, EmuTime::param time) = 0;
27 std::string name, std::string description);
33 [[nodiscard]] std::string_view
getClass()
const override;
36 [[nodiscard]] uint8_t
read(EmuTime::param time)
override;
37 void write(uint8_t value, EmuTime::param time)
override;
39 template<
typename Archive>
40 void serialize(Archive& ar,
unsigned version);
43 void writeDirect(uint8_t value, EmuTime::param time);
46 uint8_t lastValue = 255;
47 std::string description;
53 [[nodiscard]] uint8_t
read(EmuTime::param time)
override;
54 void write(uint8_t value, EmuTime::param time)
override;
Represents something you can plug devices into.
void write(uint8_t value, EmuTime::param time) override
uint8_t read(EmuTime::param time) override
virtual uint8_t read(EmuTime::param time)=0
virtual void write(uint8_t value, EmuTime::param time)=0
virtual ~JoystickPortIf()=default
uint8_t read(EmuTime::param time) override
JoystickDevice & getPluggedJoyDev() const
void write(uint8_t value, EmuTime::param time) override
std::string_view getDescription() const override
Get a description for this connector.
void serialize(Archive &ar, unsigned version)
void plug(Pluggable &device, EmuTime::param time) override
This plugs a Pluggable in this Connector.
std::string_view getClass() const override
A Connector belong to a certain class.
Central administration of Connectors and Pluggables.
This file implemented 3 utility functions: