OXYGENHUB
◆ main openmsx / src / input / MagicKey.hh
617 B · C++ · last changed chore(): initial commit 1 month ago source blame history raw
e8555c89 Andy McCall 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
	// Pluggable
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
	// JoystickDevice
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
} // namespace openmsx
26
27
#endif