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 "SDLKey.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 SDLKey initialValue);
15
16 [[nodiscard]] std::string_view getTypeString() const override;
17
18 [[nodiscard]] SDLKey getKey() const noexcept;
19};
20
21} // namespace openmsx
22
23#endif
SDLKey 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
This file implemented 3 utility functions:
Definition Autofire.cc:11