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 
9 {
10 public:
12 
13  // Pluggable
14  virtual const std::string& getName() const;
15  virtual string_ref getDescription() const;
16  virtual void plugHelper(Connector& connector, EmuTime::param time);
17  virtual void unplugHelper(EmuTime::param time);
18 
19  // JoystickDevice
20  virtual byte read(EmuTime::param time);
21  virtual void write(byte value, EmuTime::param time);
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
Represents something you can plug devices into.
Definition: Connector.hh:21
virtual void write(byte value, EmuTime::param time)
Write a value to the joystick device.
unsigned char byte
8 bit unsigned integer
Definition: openmsx.hh:33
This class implements a subset of the proposal for std::string_ref (proposed for the next c++ standar...
Definition: string_ref.hh:18
virtual string_ref getDescription() const
Description for this pluggable.
void serialize(Archive &ar, unsigned version)
virtual void plugHelper(Connector &connector, EmuTime::param time)
virtual const std::string & getName() const
Name used to identify this pluggable.
virtual byte read(EmuTime::param time)
Read from the joystick device.
virtual void unplugHelper(EmuTime::param time)