7 std::string_view name_, std::string_view description_,
9 :
Setting(commandController_, name_, description_,
std::string_view getTypeString() const override
Returns a string describing the setting type (integer, string, ..) Could be used in a GUI to pick an ...
void setChecker(std::function< void(TclObject &)> checkFunc_)
Set value-check-callback.
KeyCodeSetting(CommandController &commandController, std::string_view name, std::string_view description, Keys::KeyCode initialValue)
Keys::KeyCode getKey() const noexcept
KeyCode
Constants that identify keys and key modifiers.
const TclObject & getValue() const final override
Gets the current value of this setting as a TclObject.
Thanks to enen for testing this on a real cartridge:
std::string_view getString() const
string getName(KeyCode keyCode)
Translate key code to key name.
KeyCode getCode(string_view name)