31 : deadKeyHostKey(generate_array<3>([&](auto i) {
32 static constexpr std::array<static_string_view, 3> description = {
33 "Host key that maps to deadkey 1. Not applicable to Japanese and Korean MSX models",
34 "Host key that maps to deadkey 2. Only applicable to Brazilian MSX models (Sharp Hotbit and Gradiente)",
35 "Host key that maps to deadkey 3. Only applicable to Brazilian Sharp Hotbit MSX models",
37 static constexpr std::array<SDL_Keycode, 3> defaultKey = {
38 SDLK_RCTRL, SDLK_PAGEUP, SDLK_PAGEDOWN,
41 commandController,
tmpStrCat(
"kbd_deadkey", i + 1,
"_host_key"),
42 description[i], defaultKey[i], getAllowedKeysMap());
44 , codeKanaHostKey(commandController,
45 "kbd_code_kana_host_key",
46 "Host key that maps to the MSX CODE/KANA key. Please note that the HENKAN_MODE key only exists on Japanese host keyboards)",
47 SDLK_RALT, getAllowedKeysMap())
48 , kpEnterMode(commandController,
49 "kbd_numkeypad_enter_key",
50 "MSX key that the enter key on the host numeric keypad must map to",
52 {
"KEYPAD_COMMA", KpEnterMode::MSX_KP_COMMA},
53 {
"ENTER", KpEnterMode::MSX_ENTER}})
54 , mappingMode(commandController,
56 "Keyboard mapping mode",
57 MappingMode::CHARACTER, EnumSetting<MappingMode>::Map{
58 {
"KEY", MappingMode::KEY},
59 {
"CHARACTER", MappingMode::CHARACTER},
60 {
"POSITIONAL", MappingMode::POSITIONAL}})
61 , alwaysEnableKeypad(commandController,
62 "kbd_numkeypad_always_enabled",
63 "Numeric keypad is always enabled, even on an MSX that does not have one",
65 , traceKeyPresses(commandController,
66 "kbd_trace_key_presses",
67 "Trace key presses (show SDL key code, SDL modifiers and Unicode code-point value)",
69 , autoToggleCodeKanaLock(commandController,
70 "kbd_auto_toggle_code_kana_lock",
71 "Automatically toggle the CODE/KANA lock, based on the characters entered on the host keyboard",