From 900db5363baccd1d263b5fa8c0e5266e814b3e58 Mon Sep 17 00:00:00 2001 From: "Collin J. Doering" Date: Sun, 10 Nov 2024 21:01:13 -0500 Subject: [PATCH] ploopy-trackball: Add rekahsoft keymap --- .../trackball/keymaps/rekahsoft/config.h | 3 +++ .../trackball/keymaps/rekahsoft/keymap.c | 26 +++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 keyboards/ploopyco/trackball/keymaps/rekahsoft/config.h create mode 100644 keyboards/ploopyco/trackball/keymaps/rekahsoft/keymap.c diff --git a/keyboards/ploopyco/trackball/keymaps/rekahsoft/config.h b/keyboards/ploopyco/trackball/keymaps/rekahsoft/config.h new file mode 100644 index 0000000000..225a7440f1 --- /dev/null +++ b/keyboards/ploopyco/trackball/keymaps/rekahsoft/config.h @@ -0,0 +1,3 @@ +#define PLOOPY_DPI_OPTIONS { 600, 900, 1200, 1600, 2400 } +#define PLOOPY_DPI_DEFAULT 1 +#define PLOOPY_DRAGSCROLL_INVERT yes diff --git a/keyboards/ploopyco/trackball/keymaps/rekahsoft/keymap.c b/keyboards/ploopyco/trackball/keymaps/rekahsoft/keymap.c new file mode 100644 index 0000000000..7fcbcb1a22 --- /dev/null +++ b/keyboards/ploopyco/trackball/keymaps/rekahsoft/keymap.c @@ -0,0 +1,26 @@ +#include QMK_KEYBOARD_H + +#define _MOUSE 0 +#define _UTILITY 1 +#define _MEDIA 2 + +enum custom_keycodes { + MOUSE = SAFE_RANGE, + UTILITY, + MEDIA, +}; + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [_MOUSE] = LAYOUT( /* Base */ + KC_BTN1, KC_BTN3, KC_BTN2, + LT(UTILITY, KC_BTN4), LT(MEDIA, KC_BTN5) + ), + [_UTILITY] = LAYOUT( + DRAG_SCROLL, _______, DPI_CONFIG, + _______, _______ + ), + [_MEDIA] = LAYOUT( + KC_MPLY, KC_MPRV, KC_MNXT, + _______, _______ + ), +};