From b0478b43d801e30fc37dd69012224152713d24a7 Mon Sep 17 00:00:00 2001 From: Michael Richters Date: Tue, 6 Apr 2021 19:13:55 -0500 Subject: [PATCH] Update testcases for MagicCombo plugin Signed-off-by: Michael Richters --- tests/plugins/MagicCombo/basic/basic.ino | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/tests/plugins/MagicCombo/basic/basic.ino b/tests/plugins/MagicCombo/basic/basic.ino index f5bdc3ed..7f773b39 100644 --- a/tests/plugins/MagicCombo/basic/basic.ino +++ b/tests/plugins/MagicCombo/basic/basic.ino @@ -19,10 +19,6 @@ #include "./common.h" -#undef min -#undef max -#include - // *INDENT-OFF* KEYMAPS( [0] = KEYMAP_STACKED @@ -45,11 +41,9 @@ KEYMAPS( // *INDENT-ON* void tapKeyA(uint8_t magic_combo_index) { - std::cerr << "tapKeyA" << std::endl; - handleKeyswitchEvent(Key_A, KeyAddr{1, 0}, IS_PRESSED | INJECTED); - Kaleidoscope.hid().keyboard().sendReport(); - handleKeyswitchEvent(Key_NoKey, KeyAddr{1, 0}, WAS_PRESSED | INJECTED); - Kaleidoscope.hid().keyboard().sendReport(); + KeyAddr k{1, 0}; + Kaleidoscope.handleKeyEvent(KeyEvent{k, IS_PRESSED | INJECTED, Key_A}); + Kaleidoscope.handleKeyEvent(KeyEvent{k, WAS_PRESSED | INJECTED}); } USE_MAGIC_COMBOS({.action = tapKeyA, .keys = {R0C0, R0C1, R0C2}});