diff options
Diffstat (limited to 'keyboards/dp60/dp60.c')
-rw-r--r-- | keyboards/dp60/dp60.c | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/keyboards/dp60/dp60.c b/keyboards/dp60/dp60.c index b4a07bf1cd..3e47802463 100644 --- a/keyboards/dp60/dp60.c +++ b/keyboards/dp60/dp60.c @@ -159,4 +159,28 @@ webusb_pos_t webusb_keymap[] = { {4, 0}, {4, 1}, {4, 2}, {4, 6}, {4, 10}, {4, 11}, {4, 12}, {4, 13}, }; -#endif
\ No newline at end of file +#endif + +#ifndef RAW_ENABLE +bool process_record_kb(uint16_t keycode, keyrecord_t *record) { +#else +bool process_record_user(uint16_t keycode, keyrecord_t *record) { +#endif + if (record->event.pressed) { + switch(keycode) { + #ifdef RGBLIGHT_ENABLE + #ifdef RGB_MATRIX_ENABLE + case KC_F13: // toggle rgb matrix + rgb_matrix_toggle(); + return false; + case KC_F14: + rgb_matrix_step(); + return false; + #endif + #endif + default: + break; + } + } + return true; +} |