openMSX
RomKonamiKeyboardMaster.hh
Go to the documentation of this file.
1 #ifndef ROMKONAMIKEYBOARDMASTER_HH
2 #define ROMKONAMIKEYBOARDMASTER_HH
3 
4 #include "RomBlocks.hh"
5 
6 namespace openmsx {
7 
8 class VLM5030;
9 
11 {
12 public:
13  RomKonamiKeyboardMaster(const DeviceConfig& config, std::unique_ptr<Rom> rom);
14  virtual ~RomKonamiKeyboardMaster();
15 
16  virtual void reset(EmuTime::param time);
17  virtual void writeIO(word port, byte value, EmuTime::param time);
18  virtual byte readIO(word port, EmuTime::param time);
19  virtual byte peekIO(word port, EmuTime::param time) const;
20 
21  template<typename Archive>
22  void serialize(Archive& ar, unsigned version);
23 
24 private:
25  const std::unique_ptr<VLM5030> vlm5030;
26 };
27 
28 } // namespace openmsx
29 
30 #endif