diff options
Diffstat (limited to 'keyboards/7c8')
| -rw-r--r-- | keyboards/7c8/framework/keymaps/default/keymap.c | 5 | ||||
| -rw-r--r-- | keyboards/7c8/framework/keymaps/steven/keymap.c | 7 | ||||
| -rw-r--r-- | keyboards/7c8/framework/keymaps/via/keymap.c | 3 |
3 files changed, 9 insertions, 6 deletions
diff --git a/keyboards/7c8/framework/keymaps/default/keymap.c b/keyboards/7c8/framework/keymaps/default/keymap.c index 57dbbfee0..592cd0219 100644 --- a/keyboards/7c8/framework/keymaps/default/keymap.c +++ b/keyboards/7c8/framework/keymaps/default/keymap.c | |||
| @@ -73,7 +73,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 73 | ) | 73 | ) |
| 74 | }; | 74 | }; |
| 75 | 75 | ||
| 76 | void encoder_update_user(uint8_t index, bool clockwise) { | 76 | bool encoder_update_user(uint8_t index, bool clockwise) { |
| 77 | if (index == 0) { | 77 | if (index == 0) { |
| 78 | switch (get_highest_layer(layer_state)) { | 78 | switch (get_highest_layer(layer_state)) { |
| 79 | case _BASE: | 79 | case _BASE: |
| @@ -93,7 +93,7 @@ void encoder_update_user(uint8_t index, bool clockwise) { | |||
| 93 | break; | 93 | break; |
| 94 | 94 | ||
| 95 | case _RAISE: | 95 | case _RAISE: |
| 96 | if (clockwise) { | 96 | if (clockwise) { |
| 97 | tap_code16(LCTL(KC_RGHT)); | 97 | tap_code16(LCTL(KC_RGHT)); |
| 98 | } else { | 98 | } else { |
| 99 | tap_code16(LCTL(KC_LEFT)); | 99 | tap_code16(LCTL(KC_LEFT)); |
| @@ -120,6 +120,7 @@ void encoder_update_user(uint8_t index, bool clockwise) { | |||
| 120 | break; | 120 | break; |
| 121 | } | 121 | } |
| 122 | } | 122 | } |
| 123 | return true; | ||
| 123 | } | 124 | } |
| 124 | 125 | ||
| 125 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | 126 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { |
diff --git a/keyboards/7c8/framework/keymaps/steven/keymap.c b/keyboards/7c8/framework/keymaps/steven/keymap.c index be279f107..77134db5b 100644 --- a/keyboards/7c8/framework/keymaps/steven/keymap.c +++ b/keyboards/7c8/framework/keymaps/steven/keymap.c | |||
| @@ -115,9 +115,9 @@ void matrix_scan_user(void) { | |||
| 115 | tap_code16(G(KC_D)); | 115 | tap_code16(G(KC_D)); |
| 116 | } | 116 | } |
| 117 | } | 117 | } |
| 118 | } | 118 | } |
| 119 | 119 | ||
| 120 | void encoder_update_user(uint8_t index, bool clockwise) { | 120 | bool encoder_update_user(uint8_t index, bool clockwise) { |
| 121 | uint8_t layer = get_highest_layer(layer_state); | 121 | uint8_t layer = get_highest_layer(layer_state); |
| 122 | if (index == 0) { | 122 | if (index == 0) { |
| 123 | if (clockwise) { | 123 | if (clockwise) { |
| @@ -126,4 +126,5 @@ void encoder_update_user(uint8_t index, bool clockwise) { | |||
| 126 | tap_code16(dynamic_keymap_get_keycode(layer, 10, 0)); | 126 | tap_code16(dynamic_keymap_get_keycode(layer, 10, 0)); |
| 127 | } | 127 | } |
| 128 | } | 128 | } |
| 129 | } \ No newline at end of file | 129 | return true; |
| 130 | } | ||
diff --git a/keyboards/7c8/framework/keymaps/via/keymap.c b/keyboards/7c8/framework/keymaps/via/keymap.c index a2a353d85..2fc572b4d 100644 --- a/keyboards/7c8/framework/keymaps/via/keymap.c +++ b/keyboards/7c8/framework/keymaps/via/keymap.c | |||
| @@ -78,7 +78,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 78 | ) | 78 | ) |
| 79 | }; | 79 | }; |
| 80 | 80 | ||
| 81 | void encoder_update_user(uint8_t index, bool clockwise) { | 81 | bool encoder_update_user(uint8_t index, bool clockwise) { |
| 82 | uint8_t layer = get_highest_layer(layer_state); | 82 | uint8_t layer = get_highest_layer(layer_state); |
| 83 | if (index == 0) { | 83 | if (index == 0) { |
| 84 | if (clockwise) { | 84 | if (clockwise) { |
| @@ -87,4 +87,5 @@ void encoder_update_user(uint8_t index, bool clockwise) { | |||
| 87 | tap_code16(dynamic_keymap_get_keycode(layer, 10, 0)); | 87 | tap_code16(dynamic_keymap_get_keycode(layer, 10, 0)); |
| 88 | } | 88 | } |
| 89 | } | 89 | } |
| 90 | return true; | ||
| 90 | } | 91 | } |
