Commit ad401b02e650

Vincent Demeester <vincent@sbr.pm>
2026-03-25 10:53:10
fix(keyboards): placed mouse buttons on reachable moonlander keys
Mapped left click to shift, right click to sym/ent, and middle click to ralt thumb positions which are all physically accessible.
1 parent 9bad881
Changed files (1)
keyboards
moonlander
config
keyboards/moonlander/config/keymap.c
@@ -494,8 +494,8 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
     _______,  _______,  _______,  MS_WHLU,  _______,  _______,  _______,    _______,  _______,  _______,  MS_UP,    _______,  _______,  _______,
     _______,  _______,  MS_WHLL,  MS_WHLD,  MS_WHLR,  _______,  _______,    _______,  _______,  MS_LEFT,  MS_DOWN,  MS_RGHT,  _______,  _______,
     _______,  _______,  _______,  _______,  _______,  _______,                        _______,  _______,  _______,  _______,  _______,  _______,
-    EE_CLR,   _______,  _______,  _______,  _______,            KC_VOLD,    KC_VOLU,            _______,  _______,  _______,  _______,  _______,
-                                            _______,  _______,  _______,    MS_BTN3,  MS_BTN1,  MS_BTN2
+    EE_CLR,   _______,  _______,  _______,  _______,            KC_VOLD,    KC_VOLU,            MS_BTN3,  _______,  _______,  _______,  _______,
+                                            _______,  _______,  _______,    _______,  MS_BTN1,  MS_BTN2
   ),
 
   // ┌─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┐             ┌─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┐
@@ -516,8 +516,8 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
     _______,  _______,  _______,  _______,  _______,  _______,  _______,    _______,  _______,  _______,  MS_UP,    _______,  _______,  _______,
     _______,  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_BTN3,  MS_BTN1,  MS_BTN2
+    EE_CLR,   _______,  _______,  _______,  _______,            KC_VOLD,    KC_VOLU,            MS_BTN3,  _______,  _______,  _______,  _______,
+                                            _______,  _______,  _______,    _______,  MS_BTN1,  MS_BTN2
   ),
 };
 
@@ -906,9 +906,10 @@ 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: BTN3=70 unused, BTN1=69, BTN2=68)
+      // clicks: BTN1=69(shift), BTN2=68(sym/ent), BTN3=60(ralt)
       rgb_matrix_set_color(69, 170, 0, 255);
       rgb_matrix_set_color(68, 170, 0, 255);
+      rgb_matrix_set_color(60, 170, 0, 255);
       break;
     default:
       rgb_matrix_set_color_all(RGB_OFF);