openMSX
SETetrisDongle.hh
Go to the documentation of this file.
1 #ifndef SETETRISDONGLE_HH
2 #define SETETRISDONGLE_HH
3 
4 #include "JoystickDevice.hh"
5 
6 namespace openmsx {
7 
8 class SETetrisDongle final : public JoystickDevice
9 {
10 public:
12 
13  // Pluggable
14  const std::string& getName() const override;
15  std::string_view getDescription() const override;
16  void plugHelper(Connector& connector, EmuTime::param time) override;
17  void unplugHelper(EmuTime::param time) override;
18 
19  // JoystickDevice
20  byte read(EmuTime::param time) override;
21  void write(byte value, EmuTime::param time) override;
22 
23  template<typename Archive>
24  void serialize(Archive& ar, unsigned version);
25 
26 private:
27  byte status;
28 };
29 
30 } // namespace openmsx
31 
32 #endif
openmsx::SETetrisDongle::serialize
void serialize(Archive &ar, unsigned version)
Definition: SETetrisDongle.cc:53
openmsx::SETetrisDongle::read
byte read(EmuTime::param time) override
Read from the joystick device.
Definition: SETetrisDongle.cc:36
openmsx::SETetrisDongle::write
void write(byte value, EmuTime::param time) override
Write a value to the joystick device.
Definition: SETetrisDongle.cc:41
openmsx::SETetrisDongle::plugHelper
void plugHelper(Connector &connector, EmuTime::param time) override
Definition: SETetrisDongle.cc:25
openmsx::JoystickDevice
Definition: JoystickDevice.hh:9
JoystickDevice.hh
openmsx::SETetrisDongle::getDescription
std::string_view getDescription() const override
Description for this pluggable.
Definition: SETetrisDongle.cc:20
openmsx::SETetrisDongle::SETetrisDongle
SETetrisDongle()
Definition: SETetrisDongle.cc:7
openmsx::SETetrisDongle::getName
const std::string & getName() const override
Name used to identify this pluggable.
Definition: SETetrisDongle.cc:14
openmsx::SETetrisDongle
Definition: SETetrisDongle.hh:8
openmsx::SETetrisDongle::unplugHelper
void unplugHelper(EmuTime::param time) override
Definition: SETetrisDongle.cc:30
openmsx::Connector
Represents something you can plug devices into.
Definition: Connector.hh:20
openmsx
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5