diff options
| author | melonbred <61572569+melonbred@users.noreply.github.com> | 2021-07-01 00:12:53 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-01 00:12:53 -0700 |
| commit | cd68fd7e8d6d4e62afe30ab73af0a45391b0d4aa (patch) | |
| tree | 11878f3d776d4437b697d763a03f37bc3bdb2a20 /keyboards/mb44 | |
| parent | dc3896e31c7335b2a24a3dca9cd890e5fd8df725 (diff) | |
| download | qmk_firmware-cd68fd7e8d6d4e62afe30ab73af0a45391b0d4aa.tar.gz qmk_firmware-cd68fd7e8d6d4e62afe30ab73af0a45391b0d4aa.zip | |
[Keyboard] mb44 - Update info.json and encoder (#13244)
Diffstat (limited to 'keyboards/mb44')
| -rw-r--r-- | keyboards/mb44/info.json | 6 | ||||
| -rw-r--r-- | keyboards/mb44/keymaps/2u1u_space/keymap.c | 3 | ||||
| -rw-r--r-- | keyboards/mb44/keymaps/2u_space/keymap.c | 3 | ||||
| -rw-r--r-- | keyboards/mb44/keymaps/3u_space/keymap.c | 3 | ||||
| -rw-r--r-- | keyboards/mb44/keymaps/default/keymap.c | 3 |
5 files changed, 11 insertions, 7 deletions
diff --git a/keyboards/mb44/info.json b/keyboards/mb44/info.json index d18a0b014..49c795260 100644 --- a/keyboards/mb44/info.json +++ b/keyboards/mb44/info.json | |||
| @@ -52,7 +52,7 @@ | |||
| 52 | {"x":11.75, "y":3} | 52 | {"x":11.75, "y":3} |
| 53 | ] | 53 | ] |
| 54 | }, | 54 | }, |
| 55 | "LAYOUT_2u_split": { | 55 | "LAYOUT_2u_space": { |
| 56 | "layout": [ | 56 | "layout": [ |
| 57 | {"x":0, "y":0}, | 57 | {"x":0, "y":0}, |
| 58 | {"x":1, "y":0}, | 58 | {"x":1, "y":0}, |
| @@ -101,7 +101,7 @@ | |||
| 101 | {"x":11.75, "y":3} | 101 | {"x":11.75, "y":3} |
| 102 | ] | 102 | ] |
| 103 | }, | 103 | }, |
| 104 | "LAYOUT_2u1u_split": { | 104 | "LAYOUT_2u1u_space": { |
| 105 | "layout": [ | 105 | "layout": [ |
| 106 | {"x":0, "y":0}, | 106 | {"x":0, "y":0}, |
| 107 | {"x":1, "y":0}, | 107 | {"x":1, "y":0}, |
| @@ -150,7 +150,7 @@ | |||
| 150 | {"x":11.75, "y":3} | 150 | {"x":11.75, "y":3} |
| 151 | ] | 151 | ] |
| 152 | }, | 152 | }, |
| 153 | "LAYOUT_3u_split": { | 153 | "LAYOUT_3u_space": { |
| 154 | "layout": [ | 154 | "layout": [ |
| 155 | {"x":0, "y":0}, | 155 | {"x":0, "y":0}, |
| 156 | {"x":1, "y":0}, | 156 | {"x":1, "y":0}, |
diff --git a/keyboards/mb44/keymaps/2u1u_space/keymap.c b/keyboards/mb44/keymaps/2u1u_space/keymap.c index 437a90c7b..d231d6330 100644 --- a/keyboards/mb44/keymaps/2u1u_space/keymap.c +++ b/keyboards/mb44/keymaps/2u1u_space/keymap.c | |||
| @@ -48,7 +48,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 48 | }; | 48 | }; |
| 49 | 49 | ||
| 50 | // Rotary Encoder Functions | 50 | // Rotary Encoder Functions |
| 51 | void encoder_update_user(uint8_t index, bool clockwise) { | 51 | bool encoder_update_user(uint8_t index, bool clockwise) { |
| 52 | if (index == 0) { /* First encoder */ | 52 | if (index == 0) { /* First encoder */ |
| 53 | if (clockwise) { | 53 | if (clockwise) { |
| 54 | tap_code(KC_VOLD); | 54 | tap_code(KC_VOLD); |
| @@ -56,4 +56,5 @@ void encoder_update_user(uint8_t index, bool clockwise) { | |||
| 56 | tap_code(KC_VOLU); | 56 | tap_code(KC_VOLU); |
| 57 | } | 57 | } |
| 58 | } | 58 | } |
| 59 | return true; | ||
| 59 | } | 60 | } |
diff --git a/keyboards/mb44/keymaps/2u_space/keymap.c b/keyboards/mb44/keymaps/2u_space/keymap.c index b2f1fb64b..c3f654337 100644 --- a/keyboards/mb44/keymaps/2u_space/keymap.c +++ b/keyboards/mb44/keymaps/2u_space/keymap.c | |||
| @@ -48,7 +48,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 48 | }; | 48 | }; |
| 49 | 49 | ||
| 50 | // Rotary Encoder Functions | 50 | // Rotary Encoder Functions |
| 51 | void encoder_update_user(uint8_t index, bool clockwise) { | 51 | bool encoder_update_user(uint8_t index, bool clockwise) { |
| 52 | if (index == 0) { /* First encoder */ | 52 | if (index == 0) { /* First encoder */ |
| 53 | if (clockwise) { | 53 | if (clockwise) { |
| 54 | tap_code(KC_VOLD); | 54 | tap_code(KC_VOLD); |
| @@ -56,4 +56,5 @@ void encoder_update_user(uint8_t index, bool clockwise) { | |||
| 56 | tap_code(KC_VOLU); | 56 | tap_code(KC_VOLU); |
| 57 | } | 57 | } |
| 58 | } | 58 | } |
| 59 | return true; | ||
| 59 | } | 60 | } |
diff --git a/keyboards/mb44/keymaps/3u_space/keymap.c b/keyboards/mb44/keymaps/3u_space/keymap.c index bfd01c6ea..924b3f4ab 100644 --- a/keyboards/mb44/keymaps/3u_space/keymap.c +++ b/keyboards/mb44/keymaps/3u_space/keymap.c | |||
| @@ -56,7 +56,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 56 | }; | 56 | }; |
| 57 | 57 | ||
| 58 | // Rotary Encoder Functions | 58 | // Rotary Encoder Functions |
| 59 | void encoder_update_user(uint8_t index, bool clockwise) { | 59 | bool encoder_update_user(uint8_t index, bool clockwise) { |
| 60 | if (index == 0) { /* First encoder */ | 60 | if (index == 0) { /* First encoder */ |
| 61 | if (clockwise) { | 61 | if (clockwise) { |
| 62 | tap_code(KC_VOLD); | 62 | tap_code(KC_VOLD); |
| @@ -64,4 +64,5 @@ void encoder_update_user(uint8_t index, bool clockwise) { | |||
| 64 | tap_code(KC_VOLU); | 64 | tap_code(KC_VOLU); |
| 65 | } | 65 | } |
| 66 | } | 66 | } |
| 67 | return true; | ||
| 67 | } \ No newline at end of file | 68 | } \ No newline at end of file |
diff --git a/keyboards/mb44/keymaps/default/keymap.c b/keyboards/mb44/keymaps/default/keymap.c index 1659661f3..5eac54e07 100644 --- a/keyboards/mb44/keymaps/default/keymap.c +++ b/keyboards/mb44/keymaps/default/keymap.c | |||
| @@ -50,7 +50,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 50 | 50 | ||
| 51 | 51 | ||
| 52 | // Rotary Encoder Functions | 52 | // Rotary Encoder Functions |
| 53 | void encoder_update_user(uint8_t index, bool clockwise) { | 53 | bool encoder_update_user(uint8_t index, bool clockwise) { |
| 54 | if (index == 0) { /* First encoder */ | 54 | if (index == 0) { /* First encoder */ |
| 55 | if (clockwise) { | 55 | if (clockwise) { |
| 56 | tap_code(KC_VOLD); | 56 | tap_code(KC_VOLD); |
| @@ -58,4 +58,5 @@ void encoder_update_user(uint8_t index, bool clockwise) { | |||
| 58 | tap_code(KC_VOLU); | 58 | tap_code(KC_VOLU); |
| 59 | } | 59 | } |
| 60 | } | 60 | } |
| 61 | return true; | ||
| 61 | } | 62 | } |
