diff options
Diffstat (limited to 'users/yet-another-developer/combo.c')
| -rw-r--r-- | users/yet-another-developer/combo.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/users/yet-another-developer/combo.c b/users/yet-another-developer/combo.c new file mode 100644 index 000000000..b4e8e84ae --- /dev/null +++ b/users/yet-another-developer/combo.c | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | #include "combo.h" | ||
| 2 | |||
| 3 | void process_combo_event(uint8_t combo_index, bool pressed){ | ||
| 4 | switch(combo_index) { | ||
| 5 | case ZV_COPY: | ||
| 6 | if (pressed) { | ||
| 7 | tap_code16(LCTL(KC_C)); | ||
| 8 | } | ||
| 9 | break; | ||
| 10 | case XV_CUT: | ||
| 11 | if (pressed) { | ||
| 12 | tap_code16(LCTL(KC_X)); | ||
| 13 | } | ||
| 14 | break; | ||
| 15 | |||
| 16 | case CV_PASTE: | ||
| 17 | if (pressed) { | ||
| 18 | tap_code16(LCTL(KC_V)); | ||
| 19 | } | ||
| 20 | break; | ||
| 21 | case QP_SLEEP: | ||
| 22 | if (pressed) { | ||
| 23 | tap_code16(KC_SYSTEM_SLEEP); | ||
| 24 | } | ||
| 25 | break; | ||
| 26 | } | ||
| 27 | } | ||
