|
|
@ -23,7 +23,7 @@ KEYMAPS(
|
|
|
|
[0] = KEYMAP_STACKED
|
|
|
|
[0] = KEYMAP_STACKED
|
|
|
|
(
|
|
|
|
(
|
|
|
|
LEAD(0), ___, ___, ___, ___, ___, ___,
|
|
|
|
LEAD(0), ___, ___, ___, ___, ___, ___,
|
|
|
|
Key_A, Key_B, Key_C, Key_D, ___, ___, ___,
|
|
|
|
Key_A, Key_B, Key_C, Key_D, Key_C, ___, ___,
|
|
|
|
___, ___, ___, ___, ___, ___,
|
|
|
|
___, ___, ___, ___, ___, ___,
|
|
|
|
___, ___, ___, ___, ___, ___, ___,
|
|
|
|
___, ___, ___, ___, ___, ___, ___,
|
|
|
|
___, ___, ___, ___,
|
|
|
|
___, ___, ___, ___,
|
|
|
@ -41,18 +41,33 @@ KEYMAPS(
|
|
|
|
|
|
|
|
|
|
|
|
KALEIDOSCOPE_INIT_PLUGINS(Leader);
|
|
|
|
KALEIDOSCOPE_INIT_PLUGINS(Leader);
|
|
|
|
|
|
|
|
|
|
|
|
static void leaderBC(uint8_t id) {
|
|
|
|
static void leaderAB(uint8_t id) {
|
|
|
|
Macros.type(PSTR("x"));
|
|
|
|
Macros.type(PSTR("z"));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static void leaderAC(uint8_t id) {
|
|
|
|
static void leaderAC(uint8_t id) {
|
|
|
|
Macros.type(PSTR("xyz"));
|
|
|
|
Macros.type(PSTR("xyz"));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static void leaderBA(uint8_t id) {
|
|
|
|
|
|
|
|
Macros.type(PSTR("y"));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static void leaderBC(uint8_t id) {
|
|
|
|
|
|
|
|
Macros.type(PSTR("x"));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static void leaderC(uint8_t id) {
|
|
|
|
|
|
|
|
Macros.type(PSTR("q"));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// *INDENT-OFF*
|
|
|
|
// *INDENT-OFF*
|
|
|
|
static const kaleidoscope::plugin::Leader::dictionary_t leader_dictionary[] PROGMEM =
|
|
|
|
static const kaleidoscope::plugin::Leader::dictionary_t leader_dictionary[] PROGMEM =
|
|
|
|
LEADER_DICT( {LEADER_SEQ(LEAD(0), Key_B, Key_C), leaderBC},
|
|
|
|
LEADER_DICT( {LEADER_SEQ(LEAD(0), Key_A, Key_B), leaderAB},
|
|
|
|
{LEADER_SEQ(LEAD(0), Key_A, Key_C), leaderAC} );
|
|
|
|
{LEADER_SEQ(LEAD(0), Key_A, Key_C), leaderAC},
|
|
|
|
|
|
|
|
{LEADER_SEQ(LEAD(0), Key_B, Key_A), leaderBA},
|
|
|
|
|
|
|
|
{LEADER_SEQ(LEAD(0), Key_B, Key_C), leaderBC},
|
|
|
|
|
|
|
|
{LEADER_SEQ(LEAD(0), Key_C), leaderC } );
|
|
|
|
// *INDENT-ON*
|
|
|
|
// *INDENT-ON*
|
|
|
|
|
|
|
|
|
|
|
|
void setup() {
|
|
|
|
void setup() {
|
|
|
|