Browse Source

[Keyboard] mb44 - Update info.json and encoder (#13244)

pull/13413/head
melonbred 2 years ago
committed by GitHub
parent
commit
cd68fd7e8d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 11 additions and 7 deletions
  1. +3
    -3
      keyboards/mb44/info.json
  2. +2
    -1
      keyboards/mb44/keymaps/2u1u_space/keymap.c
  3. +2
    -1
      keyboards/mb44/keymaps/2u_space/keymap.c
  4. +2
    -1
      keyboards/mb44/keymaps/3u_space/keymap.c
  5. +2
    -1
      keyboards/mb44/keymaps/default/keymap.c

+ 3
- 3
keyboards/mb44/info.json View File

@ -52,7 +52,7 @@
{"x":11.75, "y":3}
]
},
"LAYOUT_2u_split": {
"LAYOUT_2u_space": {
"layout": [
{"x":0, "y":0},
{"x":1, "y":0},
@ -101,7 +101,7 @@
{"x":11.75, "y":3}
]
},
"LAYOUT_2u1u_split": {
"LAYOUT_2u1u_space": {
"layout": [
{"x":0, "y":0},
{"x":1, "y":0},
@ -150,7 +150,7 @@
{"x":11.75, "y":3}
]
},
"LAYOUT_3u_split": {
"LAYOUT_3u_space": {
"layout": [
{"x":0, "y":0},
{"x":1, "y":0},


+ 2
- 1
keyboards/mb44/keymaps/2u1u_space/keymap.c View File

@ -48,7 +48,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
};
// Rotary Encoder Functions
void encoder_update_user(uint8_t index, bool clockwise) {
bool encoder_update_user(uint8_t index, bool clockwise) {
if (index == 0) { /* First encoder */
if (clockwise) {
tap_code(KC_VOLD);
@ -56,4 +56,5 @@ void encoder_update_user(uint8_t index, bool clockwise) {
tap_code(KC_VOLU);
}
}
return true;
}

+ 2
- 1
keyboards/mb44/keymaps/2u_space/keymap.c View File

@ -48,7 +48,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
};
// Rotary Encoder Functions
void encoder_update_user(uint8_t index, bool clockwise) {
bool encoder_update_user(uint8_t index, bool clockwise) {
if (index == 0) { /* First encoder */
if (clockwise) {
tap_code(KC_VOLD);
@ -56,4 +56,5 @@ void encoder_update_user(uint8_t index, bool clockwise) {
tap_code(KC_VOLU);
}
}
return true;
}

+ 2
- 1
keyboards/mb44/keymaps/3u_space/keymap.c View File

@ -56,7 +56,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
};
// Rotary Encoder Functions
void encoder_update_user(uint8_t index, bool clockwise) {
bool encoder_update_user(uint8_t index, bool clockwise) {
if (index == 0) { /* First encoder */
if (clockwise) {
tap_code(KC_VOLD);
@ -64,4 +64,5 @@ void encoder_update_user(uint8_t index, bool clockwise) {
tap_code(KC_VOLU);
}
}
return true;
}

+ 2
- 1
keyboards/mb44/keymaps/default/keymap.c View File

@ -50,7 +50,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
// Rotary Encoder Functions
void encoder_update_user(uint8_t index, bool clockwise) {
bool encoder_update_user(uint8_t index, bool clockwise) {
if (index == 0) { /* First encoder */
if (clockwise) {
tap_code(KC_VOLD);
@ -58,4 +58,5 @@ void encoder_update_user(uint8_t index, bool clockwise) {
tap_code(KC_VOLU);
}
}
return true;
}

Loading…
Cancel
Save