mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-11-26 02:17:38 +06:00
Merge remote-tracking branch 'origin/master' into develop
This commit is contained in:
commit
06c7614a71
|
@ -51,15 +51,13 @@ bool encoder_update_user(uint8_t index, bool clockwise) {
|
|||
} else {
|
||||
tap_code(KC_VOLU);
|
||||
}
|
||||
}
|
||||
else if (index == 1) {
|
||||
} else if (index == 1) {
|
||||
if (clockwise) {
|
||||
tap_code(KC_LEFT);
|
||||
} else {
|
||||
tap_code(KC_RGHT);
|
||||
}
|
||||
}
|
||||
else if (index == 2) {
|
||||
} else if (index == 2) {
|
||||
if (clockwise) {
|
||||
tap_code(KC_UP);
|
||||
} else {
|
||||
|
@ -74,6 +72,7 @@ bool encoder_update_user(uint8_t index, bool clockwise) {
|
|||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
if (record->event.pressed) {
|
||||
switch (keycode) {
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
case KC_F13: // toggle rgb matrix
|
||||
rgb_matrix_toggle();
|
||||
return false;
|
||||
|
@ -104,6 +103,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
|||
case KC_F22:
|
||||
rgb_matrix_decrease_val();
|
||||
return false;
|
||||
#endif
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -65,15 +65,13 @@ bool encoder_update_user(uint8_t index, bool clockwise) {
|
|||
} else {
|
||||
tap_code(KC_VOLU);
|
||||
}
|
||||
}
|
||||
else if (index == 1) {
|
||||
} else if (index == 1) {
|
||||
if (clockwise) {
|
||||
tap_code(KC_LEFT);
|
||||
} else {
|
||||
tap_code(KC_RGHT);
|
||||
}
|
||||
}
|
||||
else if (index == 2) {
|
||||
} else if (index == 2) {
|
||||
if (clockwise) {
|
||||
tap_code(KC_UP);
|
||||
} else {
|
||||
|
@ -88,6 +86,7 @@ bool encoder_update_user(uint8_t index, bool clockwise) {
|
|||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
if (record->event.pressed) {
|
||||
switch (keycode) {
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
case BL_TOG: // toggle rgb matrix
|
||||
rgb_matrix_toggle();
|
||||
return false;
|
||||
|
@ -118,6 +117,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
|||
case BL_DVAL:
|
||||
rgb_matrix_decrease_val();
|
||||
return false;
|
||||
#endif
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user