mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-12-25 18:48:05 +06:00
b0335b2731
* Add change log * Change combo index from uint8_t to uint16_t
28 lines
487 B
C
28 lines
487 B
C
#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;
|
|
}
|
|
}
|