openMSX
KeyClick.hh
Go to the documentation of this file.
1 #ifndef KEYCLICK_HH
2 #define KEYCLICK_HH
3 
4 #include "DACSound8U.hh"
5 #include "EmuTime.hh"
6 
7 namespace openmsx {
8 
9 class DeviceConfig;
10 
11 class KeyClick
12 {
13 public:
14  explicit KeyClick(const DeviceConfig& config);
15 
16  void reset(EmuTime::param time);
17  void setClick(bool status, EmuTime::param time);
18 
19 private:
20  DACSound8U dac;
21  bool status;
22 };
23 
24 } // namespace openmsx
25 
26 #endif
void setClick(bool status, EmuTime::param time)
Definition: KeyClick.cc:16
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5
KeyClick(const DeviceConfig &config)
Definition: KeyClick.cc:5
void reset(EmuTime::param time)
Definition: KeyClick.cc:11