Add combos
This commit is contained in:
parent
646425cf6a
commit
3c7b154ea4
2 changed files with 27 additions and 0 deletions
3
keyboards/atreus62/rules.mk
Normal file
3
keyboards/atreus62/rules.mk
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
COMBO_ENABLE = yes
|
||||||
|
|
||||||
|
include ${ROOT_DIR}../../../../../rules.mk
|
||||||
24
rpw.c
24
rpw.c
|
|
@ -12,3 +12,27 @@ bool get_permissive_hold(uint16_t keycode, keyrecord_t *record) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef COMBO_ENABLE
|
||||||
|
enum combo_events {
|
||||||
|
COMBO_BSPC,
|
||||||
|
COMBO_NUMBAK,
|
||||||
|
COMBO_TAB,
|
||||||
|
COMBO_ESC,
|
||||||
|
COMBO_DEL,
|
||||||
|
};
|
||||||
|
|
||||||
|
const uint16_t PROGMEM combo_bspc[] = {KC_O, KC_P, COMBO_END};
|
||||||
|
const uint16_t PROGMEM combo_numbak[] = {KC_0, KC_9, COMBO_END};
|
||||||
|
const uint16_t PROGMEM combo_tab[] = {KC_Q, KC_W, COMBO_END};
|
||||||
|
const uint16_t PROGMEM combo_esc[] = {KC_E, KC_W, COMBO_END};
|
||||||
|
const uint16_t PROGMEM combo_del[] = {KC_MINS, KC_EQL, COMBO_END};
|
||||||
|
|
||||||
|
combo_t key_combos[] = {
|
||||||
|
[COMBO_BSPC] = COMBO(combo_bspc, KC_BSPC),
|
||||||
|
[COMBO_NUMBAK] = COMBO(combo_numbak, KC_BSPC),
|
||||||
|
[COMBO_TAB] = COMBO(combo_tab, KC_TAB),
|
||||||
|
[COMBO_ESC] = COMBO(combo_esc, KC_ESC),
|
||||||
|
[COMBO_DEL] = COMBO(combo_del, KC_DEL)
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue