diff options
author | Joel Challis <[email protected]> | 2024-04-19 02:18:51 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2024-04-19 02:18:51 +0100 |
commit | 1513966c3844df9303e2222e32824f3823e11d27 (patch) | |
tree | 532076d153f65b06b471035dfec1adfdd6a4bf41 /keyboards/dp60/keymaps | |
parent | 4a7fdda668af7c1c63e80c7da172b0b275dd4cbe (diff) | |
download | qmk_firmware-1513966c3844df9303e2222e32824f3823e11d27.tar.gz qmk_firmware-1513966c3844df9303e2222e32824f3823e11d27.zip |
Tidy use of raw hid within keyboards (#23557)
Diffstat (limited to 'keyboards/dp60/keymaps')
-rw-r--r-- | keyboards/dp60/keymaps/via/keymap.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/keyboards/dp60/keymaps/via/keymap.c b/keyboards/dp60/keymaps/via/keymap.c index 538a27886f..fab799e08a 100644 --- a/keyboards/dp60/keymaps/via/keymap.c +++ b/keyboards/dp60/keymaps/via/keymap.c @@ -44,3 +44,23 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { _______, _______, _______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______, _______,_______,_______, _______, _______,_______,_______,_______) }; + +bool process_record_user(uint16_t keycode, keyrecord_t *record) { + 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; +} |