openMSX
MagicKey.hh
Go to the documentation of this file.
1 #ifndef MAGICKEY_HH
2 #define MAGICKEY_HH
3 
4 #include "JoystickDevice.hh"
5 
6 namespace openmsx {
7 
8 class MagicKey : public JoystickDevice
9 {
10 public:
11  // Pluggable
12  virtual const std::string& getName() const;
13  virtual string_ref getDescription() const;
14  virtual void plugHelper(Connector& connector, EmuTime::param time);
15  virtual void unplugHelper(EmuTime::param time);
16 
17  // JoystickDevice
18  virtual byte read(EmuTime::param time);
19  virtual void write(byte value, EmuTime::param time);
20 
21  template<typename Archive>
22  void serialize(Archive& ar, unsigned version);
23 };
24 
25 } // namespace openmsx
26 
27 #endif