diff options
Diffstat (limited to 'keyboards/nullbitsco/nibble/keymaps')
5 files changed, 10 insertions, 5 deletions
diff --git a/keyboards/nullbitsco/nibble/keymaps/default/keymap.c b/keyboards/nullbitsco/nibble/keymaps/default/keymap.c index 787e8bd8f..beac1c55a 100644 --- a/keyboards/nullbitsco/nibble/keymaps/default/keymap.c +++ b/keyboards/nullbitsco/nibble/keymaps/default/keymap.c | |||
| @@ -105,7 +105,7 @@ void change_RGB(bool clockwise) { | |||
| 105 | } | 105 | } |
| 106 | } | 106 | } |
| 107 | 107 | ||
| 108 | void encoder_update_user(uint8_t index, bool clockwise) { | 108 | bool encoder_update_user(uint8_t index, bool clockwise) { |
| 109 | if (layer_state_is(1)) { | 109 | if (layer_state_is(1)) { |
| 110 | //change RGB settings | 110 | //change RGB settings |
| 111 | change_RGB(clockwise); | 111 | change_RGB(clockwise); |
| @@ -117,6 +117,7 @@ void encoder_update_user(uint8_t index, bool clockwise) { | |||
| 117 | tap_code(KC_VOLD); | 117 | tap_code(KC_VOLD); |
| 118 | } | 118 | } |
| 119 | } | 119 | } |
| 120 | return true; | ||
| 120 | } | 121 | } |
| 121 | 122 | ||
| 122 | void matrix_init_user(void) { | 123 | void matrix_init_user(void) { |
diff --git a/keyboards/nullbitsco/nibble/keymaps/iso/keymap.c b/keyboards/nullbitsco/nibble/keymaps/iso/keymap.c index 214034ef8..270350ca0 100644 --- a/keyboards/nullbitsco/nibble/keymaps/iso/keymap.c +++ b/keyboards/nullbitsco/nibble/keymaps/iso/keymap.c | |||
| @@ -105,7 +105,7 @@ void change_RGB(bool clockwise) { | |||
| 105 | } | 105 | } |
| 106 | } | 106 | } |
| 107 | 107 | ||
| 108 | void encoder_update_user(uint8_t index, bool clockwise) { | 108 | bool encoder_update_user(uint8_t index, bool clockwise) { |
| 109 | if (layer_state_is(1)) { | 109 | if (layer_state_is(1)) { |
| 110 | //change RGB settings | 110 | //change RGB settings |
| 111 | change_RGB(clockwise); | 111 | change_RGB(clockwise); |
| @@ -117,6 +117,7 @@ void encoder_update_user(uint8_t index, bool clockwise) { | |||
| 117 | tap_code(KC_VOLD); | 117 | tap_code(KC_VOLD); |
| 118 | } | 118 | } |
| 119 | } | 119 | } |
| 120 | return true; | ||
| 120 | } | 121 | } |
| 121 | 122 | ||
| 122 | void matrix_init_user(void) { | 123 | void matrix_init_user(void) { |
diff --git a/keyboards/nullbitsco/nibble/keymaps/oled/keymap.c b/keyboards/nullbitsco/nibble/keymaps/oled/keymap.c index b9630b8e8..c9988848d 100644 --- a/keyboards/nullbitsco/nibble/keymaps/oled/keymap.c +++ b/keyboards/nullbitsco/nibble/keymaps/oled/keymap.c | |||
| @@ -122,12 +122,13 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
| 122 | } | 122 | } |
| 123 | 123 | ||
| 124 | 124 | ||
| 125 | void encoder_update_user(uint8_t index, bool clockwise) { | 125 | bool encoder_update_user(uint8_t index, bool clockwise) { |
| 126 | if (clockwise) { | 126 | if (clockwise) { |
| 127 | tap_code(KC_VOLU); | 127 | tap_code(KC_VOLU); |
| 128 | } else { | 128 | } else { |
| 129 | tap_code(KC_VOLD); | 129 | tap_code(KC_VOLD); |
| 130 | } | 130 | } |
| 131 | return true; | ||
| 131 | } | 132 | } |
| 132 | 133 | ||
| 133 | void matrix_init_user(void) { | 134 | void matrix_init_user(void) { |
diff --git a/keyboards/nullbitsco/nibble/keymaps/oled_bongocat/keymap.c b/keyboards/nullbitsco/nibble/keymaps/oled_bongocat/keymap.c index 327cc7720..d1ddd3bcb 100644 --- a/keyboards/nullbitsco/nibble/keymaps/oled_bongocat/keymap.c +++ b/keyboards/nullbitsco/nibble/keymaps/oled_bongocat/keymap.c | |||
| @@ -47,12 +47,13 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 47 | 47 | ||
| 48 | }; | 48 | }; |
| 49 | 49 | ||
| 50 | void encoder_update_kb(uint8_t index, bool clockwise) { | 50 | bool encoder_update_user(uint8_t index, bool clockwise) { |
| 51 | if (clockwise) { | 51 | if (clockwise) { |
| 52 | tap_code(KC_VOLU); | 52 | tap_code(KC_VOLU); |
| 53 | } else { | 53 | } else { |
| 54 | tap_code(KC_VOLD); | 54 | tap_code(KC_VOLD); |
| 55 | } | 55 | } |
| 56 | return true; | ||
| 56 | } | 57 | } |
| 57 | 58 | ||
| 58 | #ifdef OLED_DRIVER_ENABLE | 59 | #ifdef OLED_DRIVER_ENABLE |
diff --git a/keyboards/nullbitsco/nibble/keymaps/via/keymap.c b/keyboards/nullbitsco/nibble/keymaps/via/keymap.c index 5b2f3b4f2..67a53f241 100644 --- a/keyboards/nullbitsco/nibble/keymaps/via/keymap.c +++ b/keyboards/nullbitsco/nibble/keymaps/via/keymap.c | |||
| @@ -148,13 +148,14 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
| 148 | return true; | 148 | return true; |
| 149 | } | 149 | } |
| 150 | 150 | ||
| 151 | void encoder_update_user(uint8_t index, bool clockwise) { | 151 | bool encoder_update_user(uint8_t index, bool clockwise) { |
| 152 | // Encoder is mapped to volume functions by default | 152 | // Encoder is mapped to volume functions by default |
| 153 | if (clockwise) { | 153 | if (clockwise) { |
| 154 | tap_code(KC_VOLU); | 154 | tap_code(KC_VOLU); |
| 155 | } else { | 155 | } else { |
| 156 | tap_code(KC_VOLD); | 156 | tap_code(KC_VOLD); |
| 157 | } | 157 | } |
| 158 | return true; | ||
| 158 | } | 159 | } |
| 159 | 160 | ||
| 160 | void matrix_init_user(void) { | 161 | void matrix_init_user(void) { |
