From fcc2bdd59bcd730f83214d37ef506386d6fbcd3e Mon Sep 17 00:00:00 2001 From: Erik Trinkle Date: Fri, 15 Mar 2024 16:57:57 -0400 Subject: [PATCH] add trackball macros to custom config --- .../keymaps/vial/keymap.c | 1 + .../keymaps/vial/vial.json | 34 +++++++++++++++++++ 2 files changed, 35 insertions(+) diff --git a/keyboards/cyboard/imprint/imprint_function_row_full_bottom_row_7_col/keymaps/vial/keymap.c b/keyboards/cyboard/imprint/imprint_function_row_full_bottom_row_7_col/keymaps/vial/keymap.c index 0ab2d797ce7..e55a6a47b59 100644 --- a/keyboards/cyboard/imprint/imprint_function_row_full_bottom_row_7_col/keymaps/vial/keymap.c +++ b/keyboards/cyboard/imprint/imprint_function_row_full_bottom_row_7_col/keymaps/vial/keymap.c @@ -3,6 +3,7 @@ */ #include QMK_KEYBOARD_H +#include const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { diff --git a/keyboards/cyboard/imprint/imprint_function_row_full_bottom_row_7_col/keymaps/vial/vial.json b/keyboards/cyboard/imprint/imprint_function_row_full_bottom_row_7_col/keymaps/vial/vial.json index 4b193b2d646..9e41eb7d6ce 100644 --- a/keyboards/cyboard/imprint/imprint_function_row_full_bottom_row_7_col/keymaps/vial/vial.json +++ b/keyboards/cyboard/imprint/imprint_function_row_full_bottom_row_7_col/keymaps/vial/vial.json @@ -3,6 +3,40 @@ "vendorId": "0xFEED", "productId": "0x0000", "lighting": "vialrgb", + "customKeycodes": [ + {"name": "DPI_INC", + "title": "Increase trackball sensitivity", + "shortName": "POINTER_DEFAULT_DPI_FORWARD" + }, + {"name": "DPI_DEC", + "title": "Decrease trackball sensitivity", + "shortName": "POINTER_DEFAULT_DPI_REVERSE" + }, + {"name": "SNP_INC", + "title": "Increase trackball sensitivity when in sniping mode", + "shortName": "POINTER_SNIPING_DPI_FORWARD" + }, + {"name": "SNP_DEC", + "title": "Decrease trackball sensitivity when in sniping mode", + "shortName": "POINTER_SNIPING_DPI_REVERSE" + }, + {"name": "Snipe", + "title": "Reduce trackball sensitivity while held", + "shortName": "SNIPING_MODE" + }, + {"name": "SNP_TOG", + "title": "Toggle between normal and sniping mode", + "shortName": "SNIPING_MODE_TOGGLE" + }, + {"name": "DragScroll", + "title": "Make trackball behave as a scroll wheel while held", + "shortName": "DRAGSCROLL_MODE" + }, + {"name": "DragScroll_TOG", + "title": "Toggle between normal and drag scroll mode", + "shortName": "DRAGSCROLL_MODE_TOGGLE" + } + ], "matrix": { "rows": 14, "cols": 8