openMSX
settings
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
7
namespace
openmsx
{
8
9
class
KeyCodeSetting
final :
public
Setting
10
{
11
public
:
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.hh
Setting.hh
openmsx::CommandController
Definition
CommandController.hh:19
openmsx::KeyCodeSetting
Definition
KeyCodeSetting.hh:10
openmsx::KeyCodeSetting::getKey
SDLKey getKey() const noexcept
Definition
KeyCodeSetting.cc:26
openmsx::KeyCodeSetting::getTypeString
std::string_view getTypeString() const override
Returns a string describing the setting type (integer, string, ..) Could be used in a GUI to pick an ...
Definition
KeyCodeSetting.cc:21
openmsx::Setting
Definition
Setting.hh:118
static_string_view
static_string_view
Definition
static_string_view.hh:28
openmsx
This file implemented 3 utility functions:
Definition
Autofire.cc:11
openmsx::SDLKey
Definition
SDLKey.hh:18
Generated on Mon Dec 30 2024 12:13:52 for openMSX by
1.9.8