summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Kerkmann <karlk90@pm.me>2022-12-14 16:31:08 +0100
committerGitHub <noreply@github.com>2022-12-15 02:31:08 +1100
commit962e4c0e1854b10612bab547c3d842c5f967dd23 (patch)
treedfe13a5a7d3f593452a1e77b5c4173263d3fb2e2
parente2ab98f9601049a7540bd89cb128669b09c688d5 (diff)
[Test] Reset timer for every unit test and provide timestamps for log messages (#17028)
-rw-r--r--builddefs/build_full_test.mk2
-rw-r--r--lib/python/qmk/cli/__init__.py1
-rw-r--r--lib/python/qmk/cli/generate/keycodes_tests.py39
-rw-r--r--platforms/test/timer.c3
-rw-r--r--quantum/action_tapping.c4
-rw-r--r--quantum/process_keycode/process_auto_shift.c2
-rw-r--r--quantum/process_keycode/process_auto_shift.h5
-rw-r--r--tests/basic/test_keycode_util.cpp52
-rw-r--r--tests/caps_word/test_caps_word.cpp9
-rw-r--r--tests/test_common/keyboard_report_util.cpp45
-rw-r--r--tests/test_common/keycode_table.cpp663
-rw-r--r--tests/test_common/keycode_util.cpp128
-rw-r--r--tests/test_common/keycode_util.hpp5
-rw-r--r--tests/test_common/matrix.c8
-rw-r--r--tests/test_common/test_common.hpp1
-rw-r--r--tests/test_common/test_fixture.cpp29
-rw-r--r--tests/test_common/test_keymap_key.cpp16
-rw-r--r--tests/test_common/test_keymap_key.hpp16
-rw-r--r--tests/test_common/test_logger.cpp16
-rw-r--r--tests/test_common/test_logger.hpp8
20 files changed, 1011 insertions, 41 deletions
diff --git a/builddefs/build_full_test.mk b/builddefs/build_full_test.mk
index 35f0a05b99..964ba773d4 100644
--- a/builddefs/build_full_test.mk
+++ b/builddefs/build_full_test.mk
@@ -24,6 +24,8 @@ $(TEST)_SRC := \
tests/test_common/matrix.c \
tests/test_common/test_driver.cpp \
tests/test_common/keyboard_report_util.cpp \
+ tests/test_common/keycode_util.cpp \
+ tests/test_common/keycode_table.cpp \
tests/test_common/test_fixture.cpp \
tests/test_common/test_keymap_key.cpp \
tests/test_common/test_logger.cpp \
diff --git a/lib/python/qmk/cli/__init__.py b/lib/python/qmk/cli/__init__.py
index 4e3ce63da3..a6d53c1cb6 100644
--- a/lib/python/qmk/cli/__init__.py
+++ b/lib/python/qmk/cli/__init__.py
@@ -57,6 +57,7 @@ subcommands = [
'qmk.cli.generate.keyboard_c',
'qmk.cli.generate.keyboard_h',
'qmk.cli.generate.keycodes',
+ 'qmk.cli.generate.keycodes_tests',
'qmk.cli.generate.rgb_breathe_table',
'qmk.cli.generate.rules_mk',
'qmk.cli.generate.version_h',
diff --git a/lib/python/qmk/cli/generate/keycodes_tests.py b/lib/python/qmk/cli/generate/keycodes_tests.py
new file mode 100644
index 0000000000..453b4693a7
--- /dev/null
+++ b/lib/python/qmk/cli/generate/keycodes_tests.py
@@ -0,0 +1,39 @@
+"""Used by the make system to generate a keycode lookup table from keycodes_{version}.json
+"""
+from milc import cli
+
+from qmk.constants import GPL2_HEADER_C_LIKE, GENERATED_HEADER_C_LIKE
+from qmk.commands import dump_lines
+from qmk.path import normpath
+from qmk.keycodes import load_spec
+
+
+def _generate_defines(lines, keycodes):
+ lines.append('')
+ lines.append('std::map<uint16_t, std::string> KEYCODE_ID_TABLE = {')
+ for key, value in keycodes["keycodes"].items():
+ lines.append(f' {{{value.get("key")}, "{value.get("key")}"}},')
+ lines.append('};')
+
+
+@cli.argument('-v', '--version', arg_only=True, required=True, help='Version of keycodes to generate.')
+@cli.argument('-o', '--output', arg_only=True, type=normpath, help='File to write to')
+@cli.argument('-q', '--quiet', arg_only=True, action='store_true', help="Quiet mode, only output error messages")
+@cli.subcommand('Used by the make system to generate a keycode lookup table from keycodes_{version}.json', hidden=True)
+def generate_keycodes_tests(cli):
+ """Generates a keycode to identifier lookup table for unit test output.
+ """
+
+ # Build the keycodes.h file.
+ keycodes_h_lines = [GPL2_HEADER_C_LIKE, GENERATED_HEADER_C_LIKE, '// clang-format off']
+ keycodes_h_lines.append('extern "C" {\n#include <keycode.h>\n}')
+ keycodes_h_lines.append('#include <map>')
+ keycodes_h_lines.append('#include <string>')
+ keycodes_h_lines.append('#include <cstdint>')
+
+ keycodes = load_spec(cli.args.version)
+
+ _generate_defines(keycodes_h_lines, keycodes)
+
+ # Show the results
+ dump_lines(cli.args.output, keycodes_h_lines, cli.args.quiet)
diff --git a/platforms/test/timer.c b/platforms/test/timer.c
index e0acd1b16d..320cc57782 100644
--- a/platforms/test/timer.c
+++ b/platforms/test/timer.c
@@ -15,8 +15,9 @@
*/
#include "timer.h"
+#include <stdatomic.h>
-static uint32_t current_time = 0;
+static atomic_uint_least32_t current_time = 0;
void timer_init(void) {
current_time = 0;
diff --git a/quantum/action_tapping.c b/quantum/action_tapping.c
index ca0f31f12e..507b8144aa 100644
--- a/quantum/action_tapping.c
+++ b/quantum/action_tapping.c
@@ -143,8 +143,8 @@ void action_tapping_process(keyrecord_t record) {
# define TAP_GET_RETRO_TAPPING true
# endif
# define MAYBE_RETRO_SHIFTING(ev) (TAP_GET_RETRO_TAPPING && (RETRO_SHIFT + 0) != 0 && TIMER_DIFF_16((ev).time, tapping_key.event.time) < (RETRO_SHIFT + 0))
-# define TAP_IS_LT IS_LT(tapping_keycode)
-# define TAP_IS_MT IS_MT(tapping_keycode)
+# define TAP_IS_LT IS_QK_LAYER_TAP(tapping_keycode)
+# define TAP_IS_MT IS_QK_MOD_TAP(tapping_keycode)
# define TAP_IS_RETRO IS_RETRO(tapping_keycode)
# else
# define TAP_GET_RETRO_TAPPING false
diff --git a/quantum/process_keycode/process_auto_shift.c b/quantum/process_keycode/process_auto_shift.c
index b7ac449198..aaf0cf9142 100644
--- a/quantum/process_keycode/process_auto_shift.c
+++ b/quantum/process_keycode/process_auto_shift.c
@@ -405,7 +405,7 @@ bool process_auto_shift(uint16_t keycode, keyrecord_t *record) {
# elif defined(IGNORE_MOD_TAP_INTERRUPT)
const bool is_hold_on_interrupt = false;
# else
- const bool is_hold_on_interrupt = IS_MT(keycode);
+ const bool is_hold_on_interrupt = IS_QK_MOD_TAP(keycode);
# endif
# endif
if (IS_RETRO(keycode)
diff --git a/quantum/process_keycode/process_auto_shift.h b/quantum/process_keycode/process_auto_shift.h
index 86adb04985..66a4b3138a 100644
--- a/quantum/process_keycode/process_auto_shift.h
+++ b/quantum/process_keycode/process_auto_shift.h
@@ -22,9 +22,8 @@
# define AUTO_SHIFT_TIMEOUT 175
#endif
-#define IS_LT(kc) ((kc) >= QK_LAYER_TAP && (kc) <= QK_LAYER_TAP_MAX)
-#define IS_MT(kc) ((kc) >= QK_MOD_TAP && (kc) <= QK_MOD_TAP_MAX)
-#define IS_RETRO(kc) (IS_MT(kc) || IS_LT(kc))
+#define IS_RETRO(kc) (IS_QK_MOD_TAP(kc) || IS_QK_LAYER_TAP(kc))
+
#define DO_GET_AUTOSHIFT_TIMEOUT(keycode, record, ...) record
// clang-format off
#define AUTO_SHIFT_ALPHA KC_A ... KC_Z
diff --git a/tests/basic/test_keycode_util.cpp b/tests/basic/test_keycode_util.cpp
new file mode 100644
index 0000000000..693334676e
--- /dev/null
+++ b/tests/basic/test_keycode_util.cpp
@@ -0,0 +1,52 @@
+// Copyright 2022 Stefan Kerkmann
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "test_common.hpp"
+
+class KeycodeToIdentifierSuite : public ::testing::TestWithParam<std::pair<std::uint16_t, std::string>> {};
+
+TEST_P(KeycodeToIdentifierSuite, ConversionTests) {
+ ASSERT_EQ(get_keycode_identifier_or_default(GetParam().first), GetParam().second);
+}
+
+INSTANTIATE_TEST_CASE_P(ConversionTestsP, KeycodeToIdentifierSuite,
+ // clang-format off
+::testing::Values(
+ // Goto layer
+ std::make_pair(TO(0), "TO(0)"),
+ std::make_pair(TO(0x1F), "TO(31)"),
+ // Momentary switch layer
+ std::make_pair(MO(0), "MO(0)"),
+ std::make_pair(MO(0x1F), "MO(31)"),
+ // Set default layer
+ std::make_pair(DF(0), "DF(0)"),
+ std::make_pair(DF(0x1F), "DF(31)"),
+ // Toggle layer
+ std::make_pair(TG(0), "TG(0)"),
+ std::make_pair(TG(0x1F), "TG(31)"),
+ // One-shot layer
+ std::make_pair(OSL(0), "OSL(0)"),
+ std::make_pair(OSL(0x1F), "OSL(31)"),
+ // One-shot mod
+ std::make_pair(OSM(MOD_LSFT), "OSM(MOD_LSFT)"),
+ std::make_pair(OSM(MOD_LSFT | MOD_LCTL), "OSM(MOD_LCTL | MOD_LSFT)"),
+ // Layer Mod
+ std::make_pair(LM(0, MOD_LSFT), "LM(0, MOD_LSFT)"),
+ std::make_pair(LM(0xF, MOD_LSFT), "LM(15, MOD_LSFT)"),
+ std::make_pair(LM(0xF, MOD_LSFT | MOD_LCTL), "LM(15, MOD_LCTL | MOD_LSFT)"),
+ // Layer tap toggle
+ std::make_pair(TT(0), "TT(0)"),
+ std::make_pair(TT(0x1F), "TT(31)"),
+ // Layer tap
+ std::make_pair(LT(0, KC_A), "LT(0, KC_A)"),
+ std::make_pair(LT(0xF, KC_SPACE), "LT(15, KC_SPACE)"),
+ std::make_pair(LT(1, KC_SPC), "LT(1, KC_SPACE)"),
+ // Mod tap
+ std::make_pair(MT(MOD_LCTL, KC_A), "MT(MOD_LCTL, KC_A)"),
+ std::make_pair(MT(MOD_LCTL | MOD_LSFT, KC_A), "MT(MOD_LCTL | MOD_LSFT, KC_A)"),
+ std::make_pair(ALT_T(KC_TAB), "MT(MOD_LALT, KC_TAB)"),
+ // Mods
+ std::make_pair(LCTL(KC_A), "QK_MODS(KC_A, QK_LCTL)"),
+ std::make_pair(HYPR(KC_SPACE), "QK_MODS(KC_SPACE, QK_LCTL | QK_LSFT | QK_LALT | QK_LGUI)")
+));
+// clang-format on
diff --git a/tests/caps_word/test_caps_word.cpp b/tests/caps_word/test_caps_word.cpp
index e5ecbb844e..fa970c7d0e 100644
--- a/tests/caps_word/test_caps_word.cpp
+++ b/tests/caps_word/test_caps_word.cpp
@@ -505,7 +505,8 @@ class CapsWordDoubleTapShift : public ::testing::WithParamInterface<CapsWordDoub
TEST_P(CapsWordDoubleTapShift, Activation) {
TestDriver driver;
KeymapKey left_shift(0, 0, 0, GetParam().left_shift_keycode);
- set_keymap({left_shift});
+ KeymapKey esc(0, 0, 1, KC_ESCAPE);
+ set_keymap({left_shift, esc});
// clang-format off
EXPECT_CALL(driver, send_keyboard_mock(AnyOf(
@@ -524,6 +525,12 @@ TEST_P(CapsWordDoubleTapShift, Activation) {
EXPECT_EQ(is_caps_word_on(), true);
testing::Mock::VerifyAndClearExpectations(&driver);
+
+ // We have to manually reset the internal state of the caps word state
+ // machine at this point. This due to imperfect test isolation which can't
+ // reset the caps word double shift timer on test case setup.
+ idle_for(CAPS_WORD_IDLE_TIMEOUT);
+ tap_key(esc);
}
// Double tap doesn't count if another key is pressed between the taps.
diff --git a/tests/test_common/keyboard_report_util.cpp b/tests/test_common/keyboard_report_util.cpp
index 7908e64f7f..2de1af2301 100644
--- a/tests/test_common/keyboard_report_util.cpp
+++ b/tests/test_common/keyboard_report_util.cpp
@@ -15,11 +15,16 @@
*/
#include "keyboard_report_util.hpp"
+#include <cstdint>
#include <vector>
#include <algorithm>
+
using namespace testing;
+extern std::map<uint16_t, std::string> KEYCODE_ID_TABLE;
+
namespace {
+
std::vector<uint8_t> get_keys(const report_keyboard_t& report) {
std::vector<uint8_t> result;
#if defined(NKRO_ENABLE)
@@ -36,6 +41,19 @@ std::vector<uint8_t> get_keys(const report_keyboard_t& report) {
std::sort(result.begin(), result.end());
return result;
}
+
+std::vector<uint8_t> get_mods(const report_keyboard_t& report) {
+ std::vector<uint8_t> result;
+ for (size_t i = 0; i < 8; i++) {
+ if (report.mods & (1 << i)) {
+ uint8_t code = KC_LEFT_CTRL + i;
+ result.emplace_back(code);
+ }
+ }
+ std::sort(result.begin(), result.end());
+ return result;
+}
+
} // namespace
bool operator==(const report_keyboard_t& lhs, const report_keyboard_t& rhs) {
@@ -44,21 +62,36 @@ bool operator==(const report_keyboard_t& lhs, const report_keyboard_t& rhs) {
return lhs.mods == rhs.mods && lhskeys == rhskeys;
}
-std::ostream& operator<<(std::ostream& stream, const report_keyboard_t& report) {
+std::ostream& operator<<(std::ostream& os, const report_keyboard_t& report) {
auto keys = get_keys(report);
+ auto mods = get_mods(report);
- // TODO: This should probably print friendly names for the keys
- stream << "Keyboard Report: Mods (" << (uint32_t)report.mods << ") Keys (";
+ os << std::setw(10) << std::left << "report: ";
+
+ if (!keys.size() && !mods.size()) {
+ return os << "empty" << std::endl;
+ }
+ os << "(";
for (auto key = keys.cbegin(); key != keys.cend();) {
- stream << +(*key);
+ os << KEYCODE_ID_TABLE.at(*key);
key++;
if (key != keys.cend()) {
- stream << ",";
+ os << ", ";
+ }
+ }
+
+ os << ") [";
+
+ for (auto mod = mods.cbegin(); mod != mods.cend();) {
+ os << KEYCODE_ID_TABLE.at(*mod);
+ mod++;
+ if (mod != mods.cend()) {
+ os << ", ";
}
}
- return stream << ")" << std::endl;
+ return os << "]" << std::endl;
}
KeyboardReportMatcher::KeyboardReportMatcher(const std::vector<uint8_t>& keys) {
diff --git a/tests/test_common/keycode_table.cpp b/tests/test_common/keycode_table.cpp
new file mode 100644
index 0000000000..63350c272d
--- /dev/null
+++ b/tests/test_common/keycode_table.cpp
@@ -0,0 +1,663 @@
+// Copyright 2022 QMK
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+/*******************************************************************************
+ 88888888888 888 d8b .d888 d8b 888 d8b
+ 888 888 Y8P d88P" Y8P 888 Y8P
+ 888 888 888 888
+ 888 88888b. 888 .d8888b 888888 888 888 .d88b. 888 .d8888b
+ 888 888 "88b 888 88K 888 888 888 d8P Y8b 888 88K
+ 888 888 888 888 "Y8888b. 888 888 888 88888888 888 "Y8888b.
+ 888 888 888 888 X88 888 888 888 Y8b. 888 X88
+ 888 888 888 888 88888P' 888 888 888 "Y8888 888 88888P'
+ 888 888
+ 888 888
+ 888 888
+ .d88b. .d88b. 88888b. .d88b. 888d888 8888b. 888888 .d88b. .d88888
+ d88P"88b d8P Y8b 888 "88b d8P Y8b 888P" "88b 888 d8P Y8b d88" 888
+ 888 888 88888888 888 888 88888888 888 .d888888 888 88888888 888 888
+ Y88b 888 Y8b. 888 888 Y8b. 888 888 888 Y88b. Y8b. Y88b 888
+ "Y88888 "Y8888 888 888 "Y8888 888 "Y888888 "Y888 "Y8888 "Y88888
+ 888
+ Y8b d88P
+ "Y88P"
+*******************************************************************************/
+
+// clang-format off
+extern "C" {
+#include <keycode.h>
+}
+#include <map>
+#include <string>
+#include <cstdint>
+
+std::map<uint16_t, std::string> KEYCODE_ID_TABLE = {
+ {KC_NO, "KC_NO"},
+ {KC_TRANSPARENT, "KC_TRANSPARENT"},
+ {KC_A, "KC_A"},
+ {KC_B, "KC_B"},
+ {KC_C, "KC_C"},
+ {KC_D, "KC_D"},
+ {KC_E, "KC_E"},
+ {KC_F, "KC_F"},
+ {KC_G, "KC_G"},
+ {KC_H, "KC_H"},
+ {KC_I, "KC_I"},
+ {KC_J, "KC_J"},
+ {KC_K, "KC_K"},
+ {KC_L, "KC_L"},
+ {KC_M, "KC_M"},
+ {KC_N, "KC_N"},
+ {KC_O, "KC_O"},
+ {KC_P, "KC_P"},
+ {KC_Q, "KC_Q"},
+ {KC_R, "KC_R"},
+ {KC_S, "KC_S"},
+ {KC_T, "KC_T"},
+ {KC_U, "KC_U"},
+ {KC_V, "KC_V"},
+ {KC_W, "KC_W"},
+ {KC_X, "KC_X"},
+ {KC_Y, "KC_Y"},
+ {KC_Z, "KC_Z"},
+ {KC_1, "KC_1"},
+ {KC_2, "KC_2"},
+ {KC_3, "KC_3"},
+ {KC_4, "KC_4"},
+ {KC_5, "KC_5"},
+ {KC_6, "KC_6"},
+ {KC_7, "KC_7"},
+ {KC_8, "KC_8"},
+ {KC_9, "KC_9"},
+ {KC_0, "KC_0"},
+ {KC_ENTER, "KC_ENTER"},
+ {KC_ESCAPE, "KC_ESCAPE"},
+ {KC_BACKSPACE, "KC_BACKSPACE"},
+ {KC_TAB, "KC_TAB"},
+ {KC_SPACE, "KC_SPACE"},
+ {KC_MINUS, "KC_MINUS"},
+ {KC_EQUAL, "KC_EQUAL"},
+ {KC_LEFT_BRACKET, "KC_LEFT_BRACKET"},
+ {KC_RIGHT_BRACKET, "KC_RIGHT_BRACKET"},
+ {KC_BACKSLASH, "KC_BACKSLASH"},
+ {KC_NONUS_HASH, "KC_NONUS_HASH"},
+ {KC_SEMICOLON, "KC_SEMICOLON"},
+ {KC_QUOTE, "KC_QUOTE"},
+ {KC_GRAVE, "KC_GRAVE"},
+ {KC_COMMA, "KC_COMMA"},
+ {KC_DOT, "KC_DOT"},
+ {KC_SLASH, "KC_SLASH"},
+ {KC_CAPS_LOCK, "KC_CAPS_LOCK"},
+ {KC_F1, "KC_F1"},
+ {KC_F2, "KC_F2"},
+ {KC_F3, "KC_F3"},
+ {KC_F4, "KC_F4"},
+ {KC_F5, "KC_F5"},
+ {KC_F6, "KC_F6"},
+ {KC_F7, "KC_F7"},
+ {KC_F8, "KC_F8"},
+ {KC_F9, "KC_F9"},
+ {KC_F10, "KC_F10"},
+ {KC_F11, "KC_F11"},
+ {KC_F12, "KC_F12"},
+ {KC_PRINT_SCREEN, "KC_PRINT_SCREEN"},
+ {KC_SCROLL_LOCK, "KC_SCROLL_LOCK"},
+ {KC_PAUSE, "KC_PAUSE"},
+ {KC_INSERT, "KC_INSERT"},
+ {KC_HOME, "KC_HOME"},
+ {KC_PAGE_UP, "KC_PAGE_UP"},
+ {KC_DELETE, "KC_DELETE"},
+ {KC_END, "KC_END"},
+ {KC_PAGE_DOWN, "KC_PAGE_DOWN"},
+ {KC_RIGHT, "KC_RIGHT"},
+ {KC_LEFT, "KC_LEFT"},
+ {KC_DOWN, "KC_DOWN"},
+ {KC_UP, "KC_UP"},
+ {KC_NUM_LOCK, "KC_NUM_LOCK"},
+ {KC_KP_SLASH, "KC_KP_SLASH"},
+ {KC_KP_ASTERISK, "KC_KP_ASTERISK"},
+ {KC_KP_MINUS, "KC_KP_MINUS"},
+ {KC_KP_PLUS, "KC_KP_PLUS"},
+ {KC_KP_ENTER, "KC_KP_ENTER"},
+ {KC_KP_1, "KC_KP_1"},
+ {KC_KP_2, "KC_KP_2"},
+ {KC_KP_3, "KC_KP_3"},
+ {KC_KP_4, "KC_KP_4"},
+ {KC_KP_5, "KC_KP_5"},
+ {KC_KP_6, "KC_KP_6"},
+ {KC_KP_7, "KC_KP_7"},
+ {KC_KP_8, "KC_KP_8"},
+ {KC_KP_9, "KC_KP_9"},
+ {KC_KP_0, "KC_KP_0"},
+ {KC_KP_DOT, "KC_KP_DOT"},
+ {KC_NONUS_BACKSLASH, "KC_NONUS_BACKSLASH"},
+ {KC_APPLICATION, "KC_APPLICATION"},
+ {KC_KB_POWER, "KC_KB_POWER"},
+ {KC_KP_EQUAL, "KC_KP_EQUAL"},
+ {KC_F13, "KC_F13"},
+ {KC_F14, "KC_F14"},
+ {KC_F15, "KC_F15"},
+ {KC_F16, "KC_F16"},
+ {KC_F17, "KC_F17"},
+ {KC_F18, "KC_F18"},
+ {KC_F19, "KC_F19"},
+ {KC_F20, "KC_F20"},
+ {KC_F21, "KC_F21"},
+ {KC_F22, "KC_F22"},
+ {KC_F23, "KC_F23"},
+ {KC_F24, "KC_F24"},
+ {KC_EXECUTE, "KC_EXECUTE"},
+ {KC_HELP, "KC_HELP"},
+ {KC_MENU, "KC_MENU"},
+ {KC_SELECT, "KC_SELECT"},
+ {KC_STOP, "KC_STOP"},
+ {KC_AGAIN, "KC_AGAIN"},
+ {KC_UNDO, "KC_UNDO"},
+ {KC_CUT, "KC_CUT"},
+ {KC_COPY, "KC_COPY"},
+ {KC_PASTE, "KC_PASTE"},
+ {KC_FIND, "KC_FIND"},
+ {KC_KB_MUTE, "KC_KB_MUTE"},
+ {KC_KB_VOLUME_UP, "KC_KB_VOLUME_UP"},
+ {KC_KB_VOLUME_DOWN, "KC_KB_VOLUME_DOWN"},
+ {KC_LOCKING_CAPS_LOCK, "KC_LOCKING_CAPS_LOCK"},
+ {KC_LOCKING_NUM_LOCK, "KC_LOCKING_NUM_LOCK"},
+ {KC_LOCKING_SCROLL_LOCK, "KC_LOCKING_SCROLL_LOCK"},
+ {KC_KP_COMMA, "KC_KP_COMMA"},
+ {KC_KP_EQUAL_AS400, "KC_KP_EQUAL_AS400"},
+ {KC_INTERNATIONAL_1, "KC_INTERNATIONAL_1"},
+ {KC_INTERNATIONAL_2, "KC_INTERNATIONAL_2"},
+ {KC_INTERNATIONAL_3, "KC_INTERNATIONAL_3"},
+ {KC_INTERNATIONAL_4, "KC_INTERNATIONAL_4"},
+ {KC_INTERNATIONAL_5, "KC_INTERNATIONAL_5"},
+ {KC_INTERNATIONAL_6, "KC_INTERNATIONAL_6"},
+ {KC_INTERNATIONAL_7, "KC_INTERNATIONAL_7"},
+ {KC_INTERNATIONAL_8, "KC_INTERNATIONAL_8"},
+ {KC_INTERNATIONAL_9, "KC_INTERNATIONAL_9"},
+ {KC_LANGUAGE_1, "KC_LANGUAGE_1"},
+ {KC_LANGUAGE_2, "KC_LANGUAGE_2"},
+ {KC_LANGUAGE_3, "KC_LANGUAGE_3"},
+ {KC_LANGUAGE_4, "KC_LANGUAGE_4"},
+ {KC_LANGUAGE_5, "KC_LANGUAGE_5"},
+ {KC_LANGUAGE_6, "KC_LANGUAGE_6"},
+ {KC_LANGUAGE_7, "KC_LANGUAGE_7"},
+ {KC_LANGUAGE_8, "KC_LANGUAGE_8"},
+ {KC_LANGUAGE_9, "KC_LANGUAGE_9"},
+ {KC_ALTERNATE_ERASE, "KC_ALTERNATE_ERASE"},
+ {KC_SYSTEM_REQUEST, "KC_SYSTEM_REQUEST"},
+ {KC_CANCEL, "KC_CANCEL"},
+ {KC_CLEAR, "KC_CLEAR"},
+ {KC_PRIOR, "KC_PRIOR"},
+ {KC_RETURN, "KC_RETURN"},
+ {KC_SEPARATOR, "KC_SEPARATOR"},
+ {KC_OUT, "KC_OUT"},
+ {KC_OPER, "KC_OPER"},
+ {KC_CLEAR_AGAIN, "KC_CLEAR_AGAIN"},
+ {KC_CRSEL, "KC_CRSEL"},
+ {KC_EXSEL, "KC_EXSEL"},
+ {KC_SYSTEM_POWER, "KC_SYSTEM_POWER"},
+ {KC_SYSTEM_SLEEP, "KC_SYSTEM_SLEEP"},
+ {KC_SYSTEM_WAKE, "KC_SYSTEM_WAKE"},
+ {KC_AUDIO_MUTE, "KC_AUDIO_MUTE"},
+ {KC_AUDIO_VOL_UP, "KC_AUDIO_VOL_UP"},
+ {KC_AUDIO_VOL_DOWN, "KC_AUDIO_VOL_DOWN"},
+ {KC_MEDIA_NEXT_TRACK, "KC_MEDIA_NEXT_TRACK"},
+ {KC_MEDIA_PREV_TRACK, "KC_MEDIA_PREV_TRACK"},
+ {KC_MEDIA_STOP, "KC_MEDIA_STOP"},
+ {KC_MEDIA_PLAY_PAUSE, "KC_MEDIA_PLAY_PAUSE"},
+ {KC_MEDIA_SELECT, "KC_MEDIA_SELECT"},
+ {KC_MEDIA_EJECT, "KC_MEDIA_EJECT"},
+ {KC_MAIL, "KC_MAIL"},
+ {KC_CALCULATOR, "KC_CALCULATOR"},
+ {KC_MY_COMPUTER, "KC_MY_COMPUTER"},
+ {KC_WWW_SEARCH, "KC_WWW_SEARCH"},
+ {KC_WWW_HOME, "KC_WWW_HOME"},
+ {KC_WWW_BACK, "KC_WWW_BACK"},
+ {KC_WWW_FORWARD, "KC_WWW_FORWARD"},
+ {KC_WWW_STOP, "KC_WWW_STOP"},
+ {KC_WWW_REFRESH, "KC_WWW_REFRESH"},
+ {KC_WWW_FAVORITES, "KC_WWW_FAVORITES"},
+ {KC_MEDIA_FAST_FORWARD, "KC_MEDIA_FAST_FORWARD"},
+ {KC_MEDIA_REWIND, "KC_MEDIA_REWIND"},
+ {KC_BRIGHTNESS_UP, "KC_BRIGHTNESS_UP"},
+ {KC_BRIGHTNESS_DOWN, "KC_BRIGHTNESS_DOWN"},
+ {KC_CONTROL_PANEL, "KC_CONTROL_PANEL"},
+ {KC_ASSISTANT, "KC_ASSISTANT"},
+ {KC_MS_UP, "KC_MS_UP"},
+ {KC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"},
+ {QK_MIDI_VELOCITY_1, "QK_MIDI_VELOCITY_1"},
+ {QK_MIDI_VELOCITY_2, "QK_MIDI_VELOCITY_2"},
+ {QK_MIDI_VELOCITY_3, "QK_MIDI_VELOCITY_3"},
+ {QK_MIDI_VELOCITY_4, "QK_MIDI_VELOCITY_4"},
+ {QK_MIDI_VELOCITY_5, "QK_MIDI_VELOCITY_5"},
+ {QK_MIDI_VELOCITY_6, "QK_MIDI_VELOCITY_6"},
+ {QK_MIDI_VELOCITY_7, "QK_MIDI_VELOCITY_7"},
+ {QK_MIDI_VELOCITY_8, "QK_MIDI_VELOCITY_8"},
+ {QK_MIDI_VELOCITY_9, "QK_MIDI_VELOCITY_9"},
+ {QK_MIDI_VELOCITY_10, "QK_MIDI_VELOCITY_10"},
+ {QK_MIDI_VELOCITY_DOWN, "QK_MIDI_VELOCITY_DOWN"},
+ {QK_MIDI_VELOCITY_UP, "QK_MIDI_VELOCITY_UP"},
+ {QK_MIDI_CHANNEL_1, "QK_MIDI_CHANNEL_1"},
+ {QK_MIDI_CHANNEL_2, "QK_MIDI_CHANNEL_2"},
+ {QK_MIDI_CHANNEL_3, "QK_MIDI_CHANNEL_3"},
+ {QK_MIDI_CHANNEL_4, "QK_MIDI_CHANNEL_4"},
+ {QK_MIDI_CHANNEL_5, "QK_MIDI_CHANNEL_5"},
+ {QK_MIDI_CHANNEL_6, "QK_MIDI_CHANNEL_6"},
+ {QK_MIDI_CHANNEL_7, "QK_MIDI_CHANNEL_7"},
+ {QK_MIDI_CHANNEL_8, "QK_MIDI_CHANNEL_8"},
+ {QK_MIDI_CHANNEL_9, "QK_MIDI_CHANNEL_9"},
+ {QK_MIDI_CHANNEL_10, "QK_MIDI_CHANNEL_10"},
+ {QK_MIDI_CHANNEL_11, "QK_MIDI_CHANNEL_11"},
+ {QK_MIDI_CHANNEL_12, "QK_MIDI_CHANNEL_12"},
+ {QK_MIDI_CHANNEL_13, "QK_MIDI_CHANNEL_13"},
+ {QK_MIDI_CHANNEL_14, "QK_MIDI_CHANNEL_14"},
+ {QK_MIDI_CHANNEL_15, "QK_MIDI_CHANNEL_15"},
+ {QK_MIDI_CHANNEL_16, "QK_MIDI_CHANNEL_16"},
+ {QK_MIDI_CHANNEL_DOWN, "QK_MIDI_CHANNEL_DOWN"},
+ {QK_MIDI_CHANNEL_UP, "QK_MIDI_CHANNEL_UP"},
+ {QK_MIDI_ALL_NOTES_OFF, "QK_MIDI_ALL_NOTES_OFF"},
+ {QK_MIDI_SUSTAIN, "QK_MIDI_SUSTAIN"},
+ {QK_MIDI_PORTAMENTO, "QK_MIDI_PORTAMENTO"},
+ {QK_MIDI_SOSTENUTO, "QK_MIDI_SOSTENUTO"},
+ {QK_MIDI_SOFT, "QK_MIDI_SOFT"},
+ {QK_MIDI_LEGATO, "QK_MIDI_LEGATO"},
+ {QK_MIDI_MODULATION, "QK_MIDI_MODULATION"},
+ {QK_MIDI_MODULATION_SPEED_DOWN, "QK_MIDI_MODULATION_SPEED_DOWN"},
+ {QK_MIDI_MODULATION_SPEED_UP, "QK_MIDI_MODULATION_SPEED_UP"},
+ {QK_MIDI_PITCH_BEND_DOWN, "QK_MIDI_PITCH_BEND_DOWN"},
+ {QK_MIDI_PITCH_BEND_UP, "QK_MIDI_PITCH_BEND_UP"},
+ {SQ_ON, "SQ_ON"},
+ {SQ_OFF, "SQ_OFF"},
+ {SQ_TOG, "SQ_TOG"},
+ {SQ_TMPD, "SQ_TMPD"},
+ {SQ_TMPU, "SQ_TMPU"},
+ {SQ_RESD, "SQ_RESD"},
+ {SQ_RESU, "SQ_RESU"},
+ {SQ_SALL, "SQ_SALL"},
+ {SQ_SCLR, "SQ_SCLR"},
+ {QK_JOYSTICK_BUTTON_0, "QK_JOYSTICK_BUTTON_0"},
+ {QK_JOYSTICK_BUTTON_1, "QK_JOYSTICK_BUTTON_1"},
+ {QK_JOYSTICK_BUTTON_2, "QK_JOYSTICK_BUTTON_2"},
+ {QK_JOYSTICK_BUTTON_3, "QK_JOYSTICK_BUTTON_3"},
+ {QK_JOYSTICK_BUTTON_4, "QK_JOYSTICK_BUTTON_4"},
+ {QK_JOYSTICK_BUTTON_5, "QK_JOYSTICK_BUTTON_5"},
+ {QK_JOYSTICK_BUTTON_6, "QK_JOYSTICK_BUTTON_6"},
+ {QK_JOYSTICK_BUTTON_7, "QK_JOYSTICK_BUTTON_7"},
+ {QK_JOYSTICK_BUTTON_8, "QK_JOYSTICK_BUTTON_8"},
+ {QK_JOYSTICK_BUTTON_9, "QK_JOYSTICK_BUTTON_9"},
+ {QK_JOYSTICK_BUTTON_10, "QK_JOYSTICK_BUTTON_10"},
+ {QK_JOYSTICK_BUTTON_11, "QK_JOYSTICK_BUTTON_11"},
+ {QK_JOYSTICK_BUTTON_12, "QK_JOYSTICK_BUTTON_12"},
+ {QK_JOYSTICK_BUTTON_13, "QK_JOYSTICK_BUTTON_13"},
+ {QK_JOYSTICK_BUTTON_14, "QK_JOYSTICK_BUTTON_14"},
+ {QK_JOYSTICK_BUTTON_15, "QK_JOYSTICK_BUTTON_15"},
+ {QK_JOYSTICK_BUTTON_16, "QK_JOYSTICK_BUTTON_16"},
+ {QK_JOYSTICK_BUTTON_17, "QK_JOYSTICK_BUTTON_17"},
+ {QK_JOYSTICK_BUTTON_18, "QK_JOYSTICK_BUTTON_18"},
+ {QK_JOYSTICK_BUTTON_19, "QK_JOYSTICK_BUTTON_19"},
+ {QK_JOYSTICK_BUTTON_20, "QK_JOYSTICK_BUTTON_20"},
+ {QK_JOYSTICK_BUTTON_21, "QK_JOYSTICK_BUTTON_21"},
+ {QK_JOYSTICK_BUTTON_22, "QK_JOYSTICK_BUTTON_22"},
+ {QK_JOYSTICK_BUTTON_23, "QK_JOYSTICK_BUTTON_23"},
+ {QK_JOYSTICK_BUTTON_24, "QK_JOYSTICK_BUTTON_24"},
+ {QK_JOYSTICK_BUTTON_25, "QK_JOYSTICK_BUTTON_25"},
+ {QK_JOYSTICK_BUTTON_26, "QK_JOYSTICK_BUTTON_26"},
+ {QK_JOYSTICK_BUTTON_27, "QK_JOYSTICK_BUTTON_27"},
+ {QK_JOYSTICK_BUTTON_28, "QK_JOYSTICK_BUTTON_28"},
+ {QK_JOYSTICK_BUTTON_29, "QK_JOYSTICK_BUTTON_29"},
+ {QK_JOYSTICK_BUTTON_30, "QK_JOYSTICK_BUTTON_30"},
+ {QK_JOYSTICK_BUTTON_31, "QK_JOYSTICK_BUTTON_31"},
+ {QK_PROGRAMMABLE_BUTTON_1, "QK_PROGRAMMABLE_BUTTON_1"},
+ {QK_PROGRAMMABLE_BUTTON_2, "QK_PROGRAMMABLE_BUTTON_2"},
+ {QK_PROGRAMMABLE_BUTTON_3, "QK_PROGRAMMABLE_BUTTON_3"},
+ {QK_PROGRAMMABLE_BUTTON_4, "QK_PROGRAMMABLE_BUTTON_4"},
+ {QK_PROGRAMMABLE_BUTTON_5, "QK_PROGRAMMABLE_BUTTON_5"},
+ {QK_PROGRAMMABLE_BUTTON_6, "QK_PROGRAMMABLE_BUTTON_6"},
+ {QK_PROGRAMMABLE_BUTTON_7, "QK_PROGRAMMABLE_BUTTON_7"},
+ {QK_PROGRAMMABLE_BUTTON_8, "QK_PROGRAMMABLE_BUTTON_8"},
+ {QK_PROGRAMMABLE_BUTTON_9, "QK_PROGRAMMABLE_BUTTON_9"},
+ {QK_PROGRAMMABLE_BUTTON_10, "QK_PROGRAMMABLE_BUTTON_10"},
+ {QK_PROGRAMMABLE_BUTTON_11, "QK_PROGRAMMABLE_BUTTON_11"},
+ {QK_PROGRAM