Skip to content

Commit

Permalink
Removed mouse keys
Browse files Browse the repository at this point in the history
  • Loading branch information
treeman committed Nov 15, 2024
1 parent 2323230 commit 9d3f7a5
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 30 deletions.
14 changes: 5 additions & 9 deletions keyboards/cybershard/keyboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"matrix_pins": {
"right": {
"rows": ["GP27", "GP26", "GP22", "GP20"],
"cols": ["GP4", "GP3", "GP5", "GP6", "GP7"]
"cols": ["GP3", "GP4", "GP5", "GP6", "GP7"]
}
},
"bootmagic": {
Expand Down Expand Up @@ -58,7 +58,7 @@
{ "matrix": [4, 1], "x": 0, "y": 0 },
{ "matrix": [4, 2], "x": 0, "y": 0 },
{ "matrix": [4, 3], "x": 0, "y": 0 },
{ "matrix": [5, 4], "x": 0, "y": 0 },
{ "matrix": [4, 4], "x": 0, "y": 0 },

{ "matrix": [2, 0], "x": 0, "y": 0 },
{ "matrix": [1, 1], "x": 0, "y": 0 },
Expand All @@ -69,7 +69,7 @@
{ "matrix": [5, 1], "x": 0, "y": 0 },
{ "matrix": [5, 2], "x": 0, "y": 0 },
{ "matrix": [5, 3], "x": 0, "y": 0 },
{ "matrix": [6, 4], "x": 0, "y": 0 },
{ "matrix": [5, 4], "x": 0, "y": 0 },

{ "matrix": [3, 0], "x": 0, "y": 0 },
{ "matrix": [2, 1], "x": 0, "y": 0 },
Expand All @@ -80,18 +80,14 @@
{ "matrix": [6, 1], "x": 0, "y": 0 },
{ "matrix": [6, 2], "x": 0, "y": 0 },
{ "matrix": [6, 3], "x": 0, "y": 0 },
{ "matrix": [7, 4], "x": 0, "y": 0 },
{ "matrix": [6, 4], "x": 0, "y": 0 },

{ "matrix": [3, 1], "x": 0, "y": 0 },
{ "matrix": [3, 2], "x": 0, "y": 0 },

{ "matrix": [3, 3], "x": 0, "y": 0 },
{ "matrix": [3, 4], "x": 0, "y": 0 },
{ "matrix": [7, 0], "x": 0, "y": 0 },

{ "matrix": [7, 1], "x": 0, "y": 0 },
{ "matrix": [7, 2], "x": 0, "y": 0 },
{ "matrix": [7, 3], "x": 0, "y": 0 }
{ "matrix": [7, 0], "x": 0, "y": 0 }
]
}
}
Expand Down
2 changes: 1 addition & 1 deletion keyboards/cybershard/keymaps/default/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#define SPLIT_POINTING_ENABLE
#define POINTING_DEVICE_RIGHT
// Important to test different values to find something that works well
#define PMW33XX_LIFTOFF_DISTANCE 0x10
#define PMW33XX_LIFTOFF_DISTANCE 0x06
// Sets the mouse resolution, up to 16000
#define PMW33XX_CPI 1600
// Reorganize
Expand Down
30 changes: 10 additions & 20 deletions keyboards/cybershard/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,81 +35,71 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
SE_R, SE_S, SE_T, SE_H, SE_K, SE_M, SE_N, SE_A, SE_I, REPEAT,
SE_COMM, SE_V, SE_G, SE_D, SE_B, SE_SLSH, SE_L, SE_LPRN, SE_RPRN, SE_UNDS,
SE_A, SE_B,
FUN_CLR, MT_SPC, SE_E,
SE_X, LB_MOUSE, RB_MOUSE
FUN_CLR, MT_SPC, SE_E
),
[_SWE] = LAYOUT(
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, SE_ARNG, SE_ADIA, SE_ODIA,
_______, _______,
_______, _______, _______,
_______, _______, _______
_______, _______, _______
),
[_NUM] = LAYOUT(
SE_J, SE_PLUS, SE_ASTR, SE_EXLM, SE_P, SE_X, _______, AT_U, REPEAT, _______,
SE_6, SE_4, SE_0, SE_2, SE_K, _______, SE_3, SE_1, SE_5, SE_7,
SE_COMM, _______, NUM_G, SE_8, _______, SE_SLSH, SE_9, SE_LPRN, SE_RPRN, SE_UNDS,
_______, _______,
_______, _______, _______,
_______, _______, _______
_______, _______, _______
),
[_NAV] = LAYOUT(
G(SE_J), KC_LEFT, KC_UP, KC_RGHT, KC_HOME, xxxxxxx, G(SE_W), G(SE_E), G(SE_R), xxxxxxx,
KC_PGUP, SC_TAB, DN_CTRL, C_TAB, G(SE_K), xxxxxxx, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT,
KC_ENT, xxxxxxx, xxxxxxx, KC_PGDN, KC_END, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx,
_______, _______,
_______, _______, WNAV,
_______, _______, _______
_______, _______, WNAV
),
[_MOUSE] = LAYOUT(
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
DN_DPI, UP_DPI,
_______, _______, _______,
_______, _______, _______
_______, _______, _______
),
[_WIN] = LAYOUT(
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, S_TAB, _______, KC_TAB, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______,
_______, _______, _______,
_______, _______, _______
_______, _______, _______
),
// Important that the symbols on the base layer have the same positions as these symbols
[_SYM] = LAYOUT(
TILD, SE_PLUS, SE_ASTR, SE_EXLM, xxxxxxx, xxxxxxx, SE_HASH, SE_AT, CIRC, SE_DOT,
SE_PIPE, SE_LCBR, SE_RCBR, SE_MINS, SE_BSLS, GRV, SE_QUES, SE_LBRC, SE_RBRC, REPEAT,
SE_COMM, SE_LABK, SE_RABK, SE_PERC, xxxxxxx, SE_SLSH, SE_AMPR, SE_LPRN, SE_RPRN, SE_UNDS,
_______, _______,
_______, _______, _______,
_______, _______, _______
_______, _______, _______
),
[_MODS] = LAYOUT(
_______, _______, _______, _______, _______, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx,
_______, _______, _______, _______, _______, xxxxxxx, OS_GUI, OS_CTRL, OS_SHFT, OS_ALT,
_______, _______, _______, _______, _______, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, MY_RALT,
_______, _______,
_______, _______, _______,
_______, _______, _______
_______, _______, _______
),
[_WNAV] = LAYOUT(
G(SE_J), G(SE_C), xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, G(SE_W), G(SE_E), G(SE_R), xxxxxxx,
G(SE_6), G(SE_4), G(SE_0), G(SE_2), G(SE_K), xxxxxxx, G(SE_3), G(SE_1), G(SE_5), G(SE_7),
xxxxxxx, xxxxxxx, xxxxxxx, G(SE_8), xxxxxxx, xxxxxxx, G(SE_9), G(SE_H), G(SE_L), xxxxxxx,
_______, _______,
_______, G(KC_SPC), _______,
_______, _______, _______
_______, G(KC_SPC), _______
),
[_FUN] = LAYOUT(
xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx,
KC_F6, KC_F4, KC_F10, KC_F2, KC_F12, KC_F11, KC_F3, KC_F1, KC_F5, KC_F7,
xxxxxxx, xxxxxxx, xxxxxxx, KC_F8, xxxxxxx, xxxxxxx, KC_F9, xxxxxxx, xxxxxxx, xxxxxxx,
_______, _______,
_______, _______, _______,
_______, _______, _______
_______, _______, _______
),
};
// clang-format on
Expand Down

0 comments on commit 9d3f7a5

Please sign in to comment.