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 
7 namespace openmsx {
8 
9 class KeyCodeSetting final : public Setting
10 {
11 public:
12  KeyCodeSetting(CommandController& commandController,
13  std::string_view name, std::string_view description,
14  Keys::KeyCode initialValue);
15 
16  std::string_view getTypeString() const override;
17 
18  Keys::KeyCode getKey() const noexcept;
19 };
20 
21 } // namespace openmsx
22 
23 #endif
openmsx::KeyCodeSetting::KeyCodeSetting
KeyCodeSetting(CommandController &commandController, std::string_view name, std::string_view description, Keys::KeyCode initialValue)
Definition: KeyCodeSetting.cc:6
openmsx::CommandController
Definition: CommandController.hh:17
Setting.hh
openmsx::Setting
Definition: Setting.hh:119
openmsx::KeyCodeSetting::getKey
Keys::KeyCode getKey() const noexcept
Definition: KeyCodeSetting.cc:26
Keys.hh
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::Keys::KeyCode
KeyCode
Constants that identify keys and key modifiers.
Definition: Keys.hh:26
openmsx::KeyCodeSetting
Definition: KeyCodeSetting.hh:9
openmsx
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5