~ruther/qmk_firmware

ref: a9e2f6a25aeb0a3d69dcdeb33be0b364f9c37beb qmk_firmware/users/yet-another-developer/combo.c -rw-r--r-- 487 bytes
a9e2f6a2 — Joel Challis Remove `led_matrix.hue_steps` and `led_matrix.sat_steps` from schema (#21827) 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include "combo.h"

void process_combo_event(uint16_t combo_index, bool pressed){
  switch(combo_index) {
    case ZV_COPY:
      if (pressed) {
        tap_code16(LCTL(KC_C));
      }
      break;
    case XV_CUT:
      if (pressed) {
        tap_code16(LCTL(KC_X));
      }
      break;

    case CV_PASTE:
      if (pressed) {
        tap_code16(LCTL(KC_V));
      }
      break;
    case QP_SLEEP:
      if (pressed) {
        tap_code16(KC_SYSTEM_SLEEP);
      }
      break;
  }
}