Commit 9bad8819928b

Vincent Demeester <vincent@sbr.pm>
2026-03-25 10:51:39
fix(keyboards): corrected mouse button placement on moonlander
Moved left/right click to reachable thumb keys (positions 69/68) since position 70 is unused in base layers and unreachable.
1 parent 2735d13
Changed files (1)
keyboards
moonlander
config
keyboards/moonlander/config/keymap.c
@@ -495,7 +495,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
     _______,  _______,  MS_WHLL,  MS_WHLD,  MS_WHLR,  _______,  _______,    _______,  _______,  MS_LEFT,  MS_DOWN,  MS_RGHT,  _______,  _______,
     _______,  _______,  _______,  _______,  _______,  _______,                        _______,  _______,  _______,  _______,  _______,  _______,
     EE_CLR,   _______,  _______,  _______,  _______,            KC_VOLD,    KC_VOLU,            _______,  _______,  _______,  _______,  _______,
-                                            _______,  _______,  _______,    MS_BTN1,  MS_BTN2,  MS_BTN3
+                                            _______,  _______,  _______,    MS_BTN3,  MS_BTN1,  MS_BTN2
   ),
 
   // ┌─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┐             ┌─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┐
@@ -517,7 +517,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
     _______,  OS_LGUI,  OS_LALT,  OS_LSFT,  OS_LCTL,  OS_HYPR,  _______,    _______,  _______,  OS_LCTL,  OS_LSFT,  OS_LALT,  OS_LGUI,  _______,
     _______,  _______,  _______,  _______,  _______,  _______,                        _______,  _______,  _______,  _______,  _______,  _______,
     EE_CLR,   _______,  _______,  _______,  _______,            KC_VOLD,    KC_VOLU,            _______,  _______,  _______,  _______,  _______,
-                                            _______,  _______,  _______,    MS_BTN1,  MS_BTN2,  MS_BTN3
+                                            _______,  _______,  _______,    MS_BTN3,  MS_BTN1,  MS_BTN2
   ),
 };
 
@@ -906,8 +906,7 @@ bool rgb_matrix_indicators_user(void) {
       rgb_matrix_set_color(12, 13, 0, 255);
       rgb_matrix_set_color(17, 13, 0, 255);
       rgb_matrix_set_color(22, 13, 0, 255);
-      // clicks (right thumbs: BTN1=70, BTN2=69, BTN3=68)
-      rgb_matrix_set_color(70, 170, 0, 255);
+      // clicks (right thumbs: BTN3=70 unused, BTN1=69, BTN2=68)
       rgb_matrix_set_color(69, 170, 0, 255);
       rgb_matrix_set_color(68, 170, 0, 255);
       break;