| 1 |
#ifndef MAGICKEY_HH |
| 2 |
#define MAGICKEY_HH |
| 3 |
|
| 4 |
#include "JoystickDevice.hh" |
| 5 |
|
| 6 |
namespace openmsx { |
| 7 |
|
| 8 |
class MagicKey final : public JoystickDevice |
| 9 |
{ |
| 10 |
public: |
| 11 |
|
| 12 |
[[nodiscard]] zstring_view getName() const override; |
| 13 |
[[nodiscard]] zstring_view getDescription() const override; |
| 14 |
void plugHelper(Connector& connector, EmuTime time) override; |
| 15 |
void unplugHelper(EmuTime time) override; |
| 16 |
|
| 17 |
|
| 18 |
[[nodiscard]] uint8_t read(EmuTime time) override; |
| 19 |
void write(uint8_t value, EmuTime time) override; |
| 20 |
|
| 21 |
template<typename Archive> |
| 22 |
void serialize(Archive& ar, unsigned version); |
| 23 |
}; |
| 24 |
|
| 25 |
} |
| 26 |
|
| 27 |
#endif |