diff options
author | Drashna Jaelre <drashna@live.com> | 2018-12-31 14:29:56 -0800 |
---|---|---|
committer | MechMerlin <30334081+mechmerlin@users.noreply.github.com> | 2018-12-31 14:29:56 -0800 |
commit | 40383089d035f69101851831f756508271fff103 (patch) | |
tree | cbdfaf00ad2c28825887d9370feedc4e1831f6ea /users/drashna/rgb_stuff.c | |
parent | 7f0def77a201bd419517332581dbc2cc3b0bd7eb (diff) | |
download | qmk_firmware-40383089d035f69101851831f756508271fff103.tar.gz qmk_firmware-40383089d035f69101851831f756508271fff103.zip |
Keymap: Update for Drashna code - Proton C Prep Edition (#4708)
* Make CRKBD keylogger output actually show tap keys
* check MT/LT for twinkling
* Add ortho 5x12 support for fractal keyboard
* Use newer interface for setting pins/ports
* Remove custom unicode methods
* Reomve unicode input info
* Odd rules issue
* Redefine REST note to be more pleasing
* Properly disable PM LEDs with GPIO commands
* Update gitlab CI yaml file
* Remove extra mod tap check
* Remove initial state on ergodox glow
* Rev6 Cleanup
* Fix KC_MAKE macro
* Update GitLab CI yaml file
* More GitLab CI changes
* One final GitLab CI change
* Remove unneeded unicode support
* Optimize KC_MAKE
Diffstat (limited to 'users/drashna/rgb_stuff.c')
-rw-r--r-- | users/drashna/rgb_stuff.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/users/drashna/rgb_stuff.c b/users/drashna/rgb_stuff.c index d238c20651..7d00604b4e 100644 --- a/users/drashna/rgb_stuff.c +++ b/users/drashna/rgb_stuff.c @@ -200,7 +200,10 @@ void start_rgb_light(void) { bool process_record_user_rgb(uint16_t keycode, keyrecord_t *record) { - switch (keycode) { + if ((keycode >= QK_MOD_TAP && keycode <= QK_MOD_TAP_MAX) || (keycode >= QK_LAYER_TAP && keycode <= QK_LAYER_TAP_MAX)) { + keycode = keycode & 0xFF; + } + switch (keycode) { #ifdef RGBLIGHT_TWINKLE case KC_A ... KC_SLASH: case KC_F1 ... KC_F12: |