MCPcopy Create free account
hub / github.com/BruceDevices/firmware / setBadUSBBLEKeyboardLayoutMenu

Function setBadUSBBLEKeyboardLayoutMenu

src/core/settings.cpp:1364–1389  ·  view source on GitHub ↗

** Function: setBadUSBBLEKeyboardLayoutMenu ** Main Menu for setting Bad USB/BLE Keyboard Layout **********************************************************************/

Source from the content-addressed store, hash-verified

1362** Main Menu for setting Bad USB/BLE Keyboard Layout
1363**********************************************************************/
1364void setBadUSBBLEKeyboardLayoutMenu() {
1365 uint8_t opt = bruceConfig.badUSBBLEKeyboardLayout;
1366
1367 options.clear();
1368 options = {
1369 {"US International", [&]() { opt = 0; } },
1370 {"Danish", [&]() { opt = 1; } },
1371 {"English (UK)", [&]() { opt = 2; } },
1372 {"French (AZERTY)", [&]() { opt = 3; } },
1373 {"German", [&]() { opt = 4; } },
1374 {"Hungarian", [&]() { opt = 5; } },
1375 {"Italian", [&]() { opt = 6; } },
1376 {"Polish", [&]() { opt = 7; } },
1377 {"Portuguese (Brazil)", [&]() { opt = 8; } },
1378 {"Portuguese (Portugal)", [&]() { opt = 9; } },
1379 {"Slovenian", [&]() { opt = 10; }},
1380 {"Spanish", [&]() { opt = 11; }},
1381 {"Swedish", [&]() { opt = 12; }},
1382 {"Turkish", [&]() { opt = 13; }},
1383 };
1384 addOptionToMainMenu();
1385
1386 loopOptions(options, opt);
1387
1388 if (opt != bruceConfig.badUSBBLEKeyboardLayout) { bruceConfig.setBadUSBBLEKeyboardLayout(opt); }
1389}
1390
1391/*********************************************************************
1392** Function: setBadUSBBLEKeyDelayMenu

Callers

nothing calls this directly

Calls 4

addOptionToMainMenuFunction · 0.85
loopOptionsFunction · 0.70
clearMethod · 0.45

Tested by

no test coverage detected