Skip to content

Commit

Permalink
Final 4x5_3_track
Browse files Browse the repository at this point in the history
  • Loading branch information
bullwinkle3000 committed Nov 13, 2024
1 parent 8da476d commit fec5750
Show file tree
Hide file tree
Showing 5 changed files with 125 additions and 88 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,22 @@
#define XXX KC_NO


#define LAYOUT_4x5( \
L00, L01, L02, L03, L04, R00, R01, R02, R03, R04, \
L10, L11, L12, L13, L14, R10, R11, R12, R13, R14, \
L20, L21, L22, L23, L24, R20, R21, R22, R23, R24, \
L31, L32, R32, R33,\
L42, L43, L44, R40, R41, R42 \
#define LAYOUT_4x5_3( \
L00, L01, L02, L03, L04, R00, R01, R02, R03, R04, \
L10, L11, L12, L13, L14, R10, R11, R12, R13, R14, \
L20, L21, L22, L23, L24, R20, R21, R22, R23, R24, \
L30, L31, L32, L33, L34, R30, R31, R32, R33, R34, \
L42, L43, L44, R40, R41, R42 \
) { \
{ L00, L01, L02, L03, L04 }, \
{ L10, L11, L12, L13, L14 }, \
{ L20, L21, L22, L23, L24 }, \
{ XXX, L31, L32, XXX, XXX }, \
{ L30, L31, L32, L33, L34 }, \
{ XXX, XXX, L42, L43, L44 }, \
\
{ R00, R01, R02, R03, R04 }, \
{ R10, R11, R12, R13, R14 }, \
{ R20, R21, R22, R23, R24 }, \
{ XXX, XXX, R32, R33, XXX }, \
{ R30, R31, R32, R33, R34 }, \
{ R40, R41, R42, XXX, XXX } \
}

124 changes: 77 additions & 47 deletions keyboards/handwired/wylderbuilds/trackball/4x5_3_track/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"processor": "RP2040",
"usb": {
"vid": "0x9953",
"pid": "0x0040",
"pid": "0x0390",
"device_version": "0.0.1"
},
"width": 18,
Expand All @@ -16,207 +16,237 @@
"cols": 5
},
"layouts": {
"LAYOUT_4x5": {
"LAYOUT_4x5_3": {
"layout": [
{
"label": "0,1",
"x": 2,
"x": 1,
"y": 0
},
{
"label": "0,2",
"x": 3,
"x": 2,
"y": 0
},
{
"label": "0,3",
"x": 4,
"x": 3,
"y": 0
},
{
"label": "0,4",
"x": 5,
"x": 4,
"y": 0
},
{
"label": "5,0",
"x": 12.75,
"x": 11.75,
"y": 0
},
{
"label": "5,1",
"x": 13.75,
"x": 12.75,
"y": 0
},
{
"label": "5,2",
"x": 14.75,
"x": 13.75,
"y": 0
},
{
"label": "5,3",
"x": 15.75,
"x": 14.75,
"y": 0
},
{
"label": "0,0",
"x": 1,
"x": 0,
"y": 0.5
},
{
"label": "5,4",
"x": 16.75,
"x": 15.75,
"y": 0.5
},
{
"label": "1,1",
"x": 2,
"x": 1,
"y": 1
},
{
"label": "1,2",
"x": 3,
"x": 2,
"y": 1
},
{
"label": "1,3",
"x": 4,
"x": 3,
"y": 1
},
{
"label": "1,4",
"x": 5,
"x": 4,
"y": 1
},
{
"label": "6,0",
"x": 12.75,
"x": 11.75,
"y": 1
},
{
"label": "6,1",
"x": 13.75,
"x": 12.75,
"y": 1
},
{
"label": "6,2",
"x": 14.75,
"x": 13.75,
"y": 1
},
{
"label": "6,3",
"x": 15.75,
"x": 14.75,
"y": 1
},
{
"label": "1,0",
"x": 1,
"x": 0,
"y": 1.5
},
{
"label": "6,4",
"x": 16.75,
"x": 15.75,
"y": 1.5
},
{
"label": "2,1",
"x": 2,
"x": 1,
"y": 2
},
{
"label": "2,2",
"x": 3,
"x": 2,
"y": 2
},
{
"label": "2,3",
"x": 4,
"x": 3,
"y": 2
},
{
"label": "2,4",
"x": 5,
"x": 4,
"y": 2
},
{
"label": "7,0",
"x": 12.75,
"x": 11.75,
"y": 2
},
{
"label": "7,1",
"x": 13.75,
"x": 12.75,
"y": 2
},
{
"label": "7,2",
"x": 14.75,
"x": 13.75,
"y": 2
},
{
"label": "7,3",
"x": 15.75,
"x": 14.75,
"y": 2
},
{
"label": "2,0",
"x": 1,
"x": 0,
"y": 2.5
},
{
"label": "7,4",
"x": 16.75,
"x": 15.75,
"y": 2.5
},
{
"label": "3,1",
"x": 2,
"x": 1,
"y": 3
},
{
"label": "3,2",
"x": 2,
"y": 3
},
{
"label": "3,3",
"x": 3,
"y": 3
},
{
"label": "3,4",
"x": 4,
"y": 3
},
{
"label": "8,0",
"x": 11.75,
"y": 3
},
{
"label": "8,1",
"x": 12.75,
"y": 3
},
{
"label": "8,2",
"x": 14.75,
"x": 13.75,
"y": 3
},
{
"label": "8,3",
"x": 15.75,
"x": 14.75,
"y": 3
},
{
"label": "3,0",
"x": 0,
"y": 3.5
},
{
"label": "8,4",
"x": 15.75,
"y": 3.5
},
{
"label": "4,2",
"x": 5,
"y": 3
"x": 2.5,
"y": 4
},
{
"label": "4,3",
"x": 6,
"y": 3
"x": 3.5,
"y": 4
},
{
"label": "4,4",
"x": 7,
"y": 3
"x": 4.5,
"y": 4
},
{
"label": "9,0",
"x": 10.75,
"y": 5
"x": 11.25,
"y": 4
},
{
"label": "9,1",
"x": 11.75,
"y": 5
"x": 12.25,
"y": 4
},
{
"label": "9,2",
"x": 12.75,
"y": 5
"x": 13.25,
"y": 4
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,41 +14,42 @@ enum wyld_keycodes {
};

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_QWERTY] = LAYOUT_4x5(
[_QWERTY] = LAYOUT_4x5_3(
KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,
KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,
KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN,
KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM,KC_DOT ,KC_SLSH,
KC_LBRC, KC_RBRC, KC_EQL, KC_BSLS,
RAISE, KC_SPC, KC_BSPC, KC_DEL, KC_ENT, LOWER
),

[_LOWER] = LAYOUT_4x5(
[_LOWER] = LAYOUT_4x5_3(
KC_EXLM, KC_AT ,KC_HASH,KC_DLR ,KC_PERC, KC_CIRC, KC_AMPR,KC_ASTR,KC_LPRN,KC_RPRN,
QK_BOOT,_______,_______,_______,KC_LBRC, KC_RBRC, KC_P7 , KC_P8 , KC_P9 ,WYLD_AUTO_MS_TOG,
KC_HOME,KC_PGUP,KC_PGDN,KC_END ,KC_LPRN, KC_RPRN, KC_P4 , KC_P5 , KC_P6 ,KC_MINS,
_______,_______,_______,SNIPING,DRGSCRL, _______, KC_P1 , KC_P2 , KC_P3 ,KC_EQL ,
KC_LBRC, KC_RBRC, KC_EQL, KC_BSLS,
DPI_RMOD,DPI_MOD,DPI_RST,SNIPING,DRGSCRL, _______, KC_P1 , KC_P2 , KC_P3 ,KC_EQL ,
_______, KC_BTN1, KC_BTN3, _______, _______, _______
),

[_RAISE] = LAYOUT_4x5(
[_RAISE] = LAYOUT_4x5_3(
KC_F1 , KC_F2 , KC_F3 , KC_F4 , KC_F5 , KC_F6, KC_F7 , KC_F8 , KC_F9 ,KC_F10 ,
_______,_______,_______,_______,KC_LBRC, KC_RBRC,KC_NUM,KC_INS ,KC_SCRL,KC_MUTE,
_______,_______,_______,_______,KC_LBRC, KC_RBRC,_______,KC_NUM,KC_INS ,KC_SCRL,
KC_LEFT,KC_UP,KC_DOWN,KC_RGHT,KC_LPRN, KC_RPRN,KC_MPRV,KC_MPLY,KC_VOLU,KC_VOLD,
KC_LBRC, KC_RBRC, KC_EQL, KC_BSLS,
_______, _______,_______,q _______,_______,_______
_______, _______,_______, _______,_______,_______
),
[_MOUSE] = LAYOUT_4x5(
[_MOUSE] = LAYOUT_4x5_3(
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, KC_BTN2, KC_BTN3, KC_BTN1, KC_BTN1, KC_BTN3, KC_BTN2, _______, _______,
_______, _______, _______, SNIPING, DRGSCRL, _______, _______, _______, _______, _______,
_______, _______, _______, _______,
_______, KC_BTN1, KC_BTN3, _______, _______, _______
)
};

void pointing_device_init_user(void) {
#ifdef POINTING_DEVICE_AUTO_MOUSE_ENABLE
set_auto_mouse_enable(true);
set_auto_mouse_enable(false);
#endif
#ifdef POINTING_DEVICE_COMBINED
pointing_device_set_cpi_on_side(true, CHARYBDIS_DRAGSCROLL_DPI); // LEFT
Expand Down
Loading

0 comments on commit fec5750

Please sign in to comment.