** Function: setBadUSBBLEKeyboardLayoutMenu ** Main Menu for setting Bad USB/BLE Keyboard Layout **********************************************************************/
| 1362 | ** Main Menu for setting Bad USB/BLE Keyboard Layout |
| 1363 | **********************************************************************/ |
| 1364 | void 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 |
nothing calls this directly
no test coverage detected