|
|
@ -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}});
|
|
|
|