Update testcases for MagicCombo plugin

Signed-off-by: Michael Richters <gedankenexperimenter@gmail.com>
pull/1024/head
Michael Richters 4 years ago
parent f7b7799756
commit b0478b43d8
No known key found for this signature in database
GPG Key ID: 1288FD13E4EEF0C0

@ -19,10 +19,6 @@
#include "./common.h" #include "./common.h"
#undef min
#undef max
#include <iostream>
// *INDENT-OFF* // *INDENT-OFF*
KEYMAPS( KEYMAPS(
[0] = KEYMAP_STACKED [0] = KEYMAP_STACKED
@ -45,11 +41,9 @@ KEYMAPS(
// *INDENT-ON* // *INDENT-ON*
void tapKeyA(uint8_t magic_combo_index) { void tapKeyA(uint8_t magic_combo_index) {
std::cerr << "tapKeyA" << std::endl; KeyAddr k{1, 0};
handleKeyswitchEvent(Key_A, KeyAddr{1, 0}, IS_PRESSED | INJECTED); Kaleidoscope.handleKeyEvent(KeyEvent{k, IS_PRESSED | INJECTED, Key_A});
Kaleidoscope.hid().keyboard().sendReport(); Kaleidoscope.handleKeyEvent(KeyEvent{k, WAS_PRESSED | INJECTED});
handleKeyswitchEvent(Key_NoKey, KeyAddr{1, 0}, WAS_PRESSED | INJECTED);
Kaleidoscope.hid().keyboard().sendReport();
} }
USE_MAGIC_COMBOS({.action = tapKeyA, .keys = {R0C0, R0C1, R0C2}}); USE_MAGIC_COMBOS({.action = tapKeyA, .keys = {R0C0, R0C1, R0C2}});

Loading…
Cancel
Save