OXYGENHUB
◆ main openmsx / src / settings / KeyCodeSetting.hh
484 B · C++ · last changed chore(): initial commit 1 month ago source blame history raw
e8555c89 Andy McCall 1
#ifndef KEYCODESETTING_HH
2
#define KEYCODESETTING_HH
3
4
#include "Setting.hh"
5
6
#include "SDLKey.hh"
7
8
namespace openmsx {
9
10
class KeyCodeSetting final : public Setting
11
{
12
public:
13
	KeyCodeSetting(CommandController& commandController,
14
	               std::string_view name, static_string_view description,
15
	               SDLKey initialValue);
16
17
	[[nodiscard]] std::string_view getTypeString() const override;
18
19
	[[nodiscard]] SDLKey getKey() const noexcept;
20
};
21
22
} // namespace openmsx
23
24
#endif