diff options
author | Kjetil Orbekk <kj@orbekk.com> | 2022-04-23 21:20:13 -0400 |
---|---|---|
committer | Kjetil Orbekk <kj@orbekk.com> | 2024-04-02 20:07:10 -0400 |
commit | 743d8401cbc4a414764c5e7597c412b6f6401e42 (patch) | |
tree | 42233e8b6fb75807c7819c6febe8efbfcf194785 /keyboards | |
parent | acc18ea9e30c27d1192fff7955229e5d3c8516c9 (diff) |
ploopy keymap
Diffstat (limited to 'keyboards')
3 files changed, 40 insertions, 0 deletions
diff --git a/keyboards/ploopyco/trackball_mini/keymaps/orbekk/config.h b/keyboards/ploopyco/trackball_mini/keymaps/orbekk/config.h new file mode 100644 index 0000000000..81a3e55262 --- /dev/null +++ b/keyboards/ploopyco/trackball_mini/keymaps/orbekk/config.h @@ -0,0 +1,6 @@ +#pragma once + +#define PLOOPY_DPI_OPTIONS { 375, 750, 1375 } +#define PLOOPY_DRAGSCROLL_DPI 50 +#define PLOOPY_DPI_DEFAULT 1 +#define PLOOPY_DRAGSCROLL_INVERT 1 diff --git a/keyboards/ploopyco/trackball_mini/keymaps/orbekk/keymap.c b/keyboards/ploopyco/trackball_mini/keymaps/orbekk/keymap.c new file mode 100644 index 0000000000..48328b059e --- /dev/null +++ b/keyboards/ploopyco/trackball_mini/keymaps/orbekk/keymap.c @@ -0,0 +1,29 @@ +/* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com> + * Copyright 2019 Sunjun Kim + * Copyright 2020 Ploopy Corporation + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ +#include QMK_KEYBOARD_H + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [0] = LAYOUT( /* Base */ + KC_BTN1, KC_BTN3, KC_BTN2, + KC_BTN4, MO(1) + ), + [1] = LAYOUT( + DPI_CONFIG, _______, DRAG_SCROLL, + KC_BTN5, _______ + ) +}; diff --git a/keyboards/ploopyco/trackball_mini/keymaps/orbekk/readme.md b/keyboards/ploopyco/trackball_mini/keymaps/orbekk/readme.md new file mode 100644 index 0000000000..362821832f --- /dev/null +++ b/keyboards/ploopyco/trackball_mini/keymaps/orbekk/readme.md @@ -0,0 +1,5 @@ +# The Drag Scroll keymap for the Ploopy Trackball Mini + +This is a sample keymap showing off what you can do with the custom callback drivers. + +This particular example enables "drag scrolling". The movement of the ball is used to scroll up and down.
\ No newline at end of file |