aboutsummaryrefslogtreecommitdiff
path: root/keyboards/rart/rart4x4/keymaps/default/keymap.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/rart/rart4x4/keymaps/default/keymap.c')
-rw-r--r--keyboards/rart/rart4x4/keymaps/default/keymap.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/keyboards/rart/rart4x4/keymaps/default/keymap.c b/keyboards/rart/rart4x4/keymaps/default/keymap.c
index 36680e357..02dfc0a14 100644
--- a/keyboards/rart/rart4x4/keymaps/default/keymap.c
+++ b/keyboards/rart/rart4x4/keymaps/default/keymap.c
@@ -25,16 +25,16 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
25 KC_P4, KC_P5, KC_P6, KC_PPLS, 25 KC_P4, KC_P5, KC_P6, KC_PPLS,
26 KC_P1, KC_P2, KC_P3, KC_PENT 26 KC_P1, KC_P2, KC_P3, KC_PENT
27 ), 27 ),
28 28
29 [1] = LAYOUT_ortho_4x4( 29 [1] = LAYOUT_ortho_4x4(
30 KC_TRNS, RGB_HUI, RGB_HUD, KC_TRNS, 30 KC_TRNS, RGB_HUI, RGB_HUD, KC_TRNS,
31 RGB_SAI, RGB_SAD, KC_MNXT, KC_MPRV, 31 RGB_SAI, RGB_SAD, KC_MNXT, KC_MPRV,
32 RGB_VAI, RGB_VAD, KC_MSTP, KC_MPLY, 32 RGB_VAI, RGB_VAD, KC_MSTP, KC_MPLY,
33 KC_COPY, KC_PSTE, KC_MYCM, RGB_TOG 33 KC_COPY, KC_PSTE, KC_MYCM, RGB_TOG
34 ) 34 )
35}; 35};
36 36
37void encoder_update_user(uint8_t index, bool clockwise) { 37bool encoder_update_user(uint8_t index, bool clockwise) {
38 if (index == 0) { /* First encoder */ 38 if (index == 0) { /* First encoder */
39 if (clockwise) { 39 if (clockwise) {
40 tap_code(KC_VOLD); 40 tap_code(KC_VOLD);
@@ -48,4 +48,5 @@ void encoder_update_user(uint8_t index, bool clockwise) {
48 tap_code(KC_WH_U); 48 tap_code(KC_WH_U);
49 } 49 }
50 } 50 }
51 return true;
51} 52}