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
openmsx::DeviceConfig
Definition: DeviceConfig.hh:20
openmsx::KeyClick::setClick
void setClick(bool status, EmuTime::param time)
Definition: KeyClick.cc:16
openmsx::KeyClick::reset
void reset(EmuTime::param time)
Definition: KeyClick.cc:11
DACSound8U.hh
EmuTime.hh
openmsx::KeyClick::KeyClick
KeyClick(const DeviceConfig &config)
Definition: KeyClick.cc:5
openmsx::KeyClick
Definition: KeyClick.hh:12
openmsx::DACSound8U
Definition: DACSound8U.hh:11
openmsx
This file implemented 3 utility functions:
Definition: Autofire.cc:5