openMSX
KeyCodeSetting.hh
Go to the documentation of this file.
1#ifndef KEYCODESETTING_HH
2#define KEYCODESETTING_HH
3
4#include "Setting.hh"
5#include "Keys.hh"
6
7namespace openmsx {
8
9class KeyCodeSetting final : public Setting
10{
11public:
12 KeyCodeSetting(CommandController& commandController,
13 std::string_view name, static_string_view description,
14 Keys::KeyCode initialValue);
15
16 [[nodiscard]] std::string_view getTypeString() const override;
17
18 [[nodiscard]] Keys::KeyCode getKey() const noexcept;
19};
20
21} // namespace openmsx
22
23#endif
KeyCodeSetting(CommandController &commandController, std::string_view name, static_string_view description, Keys::KeyCode initialValue)
Keys::KeyCode getKey() const noexcept
std::string_view getTypeString() const override
Returns a string describing the setting type (integer, string, ..) Could be used in a GUI to pick an ...
static_string_view
KeyCode
Constants that identify keys and key modifiers.
Definition: Keys.hh:26
This file implemented 3 utility functions:
Definition: Autofire.cc:9