X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=quantum%2Fquantum.c;h=23873852f5b5efab601351f30fff08d60ad9ba41;hb=685d4c2f9754e22de3b68379cfc959197495c0aa;hp=1fccaa7d5a027a125c654399f8dd90720799aeef;hpb=7ad924bae5519e981c57495e481db62741aa4376;p=qmk_firmware.git diff --git a/quantum/quantum.c b/quantum/quantum.c index 1fccaa7d5..23873852f 100644 --- a/quantum/quantum.c +++ b/quantum/quantum.c @@ -235,6 +235,9 @@ bool process_record_quantum(keyrecord_t *record) { #ifdef PRINTING_ENABLE process_printer(keycode, record) && #endif + #ifdef AUTO_SHIFT_ENABLE + process_auto_shift(keycode, record) && + #endif #ifdef UNICODEMAP_ENABLE process_unicode_map(keycode, record) && #endif @@ -287,6 +290,18 @@ bool process_record_quantum(keyrecord_t *record) { rgblight_step(); } return false; + case RGB_SMOD: + // same as RBG_MOD, but if shift is pressed, it will use the reverese direction instead. + if (record->event.pressed) { + uint8_t shifted = get_mods() & (MOD_BIT(KC_LSHIFT)|MOD_BIT(KC_RSHIFT)); + if(shifted) { + rgblight_step_reverse(); + } + else { + rgblight_step(); + } + } + return false; case RGB_HUI: if (record->event.pressed) { rgblight_increase_hue();