summaryrefslogtreecommitdiff
path: root/layouts/community/ergodox/drashna
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2021-11-14 22:03:24 -0800
committerGitHub <noreply@github.com>2021-11-14 22:03:24 -0800
commit56e3f06a26851976e559aacf7a096c61403304be (patch)
tree1e9ec98ad239fdd241e77ac4c4822fc2721a9cea /layouts/community/ergodox/drashna
parent462c3a615113e84ac3ca837a5caeb928c0ec8505 (diff)
Rework and expand Pointing Device support (#14343)
Co-authored-by: Dasky <32983009+daskygit@users.noreply.github.com>
Diffstat (limited to 'layouts/community/ergodox/drashna')
-rw-r--r--layouts/community/ergodox/drashna/keymap.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/layouts/community/ergodox/drashna/keymap.c b/layouts/community/ergodox/drashna/keymap.c
index dd47899d7a..3c9bcfeaa2 100644
--- a/layouts/community/ergodox/drashna/keymap.c
+++ b/layouts/community/ergodox/drashna/keymap.c
@@ -186,20 +186,20 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
#ifdef PIMORONI_TRACKBALL_ENABLE
void run_trackball_cleanup(void) {
- if (trackball_is_scrolling()) {
- trackball_set_rgbw(RGB_CYAN, 0x00);
- } else if (trackball_get_precision() != 1.0) {
- trackball_set_rgbw(RGB_GREEN, 0x00);
- } else {
- trackball_set_rgbw(RGB_MAGENTA, 0x00);
- }
+ // if (trackball_is_scrolling()) {
+ // trackball_set_rgbw(RGB_CYAN, 0x00);
+ // } else if (trackball_get_precision() != 1.0) {
+ // trackball_set_rgbw(RGB_GREEN, 0x00);
+ // } else {
+ // trackball_set_rgbw(RGB_MAGENTA, 0x00);
+ // }
}
void keyboard_post_init_keymap(void) {
// trackball_set_precision(1.5);
- trackball_set_rgbw(RGB_MAGENTA, 0x00);
+ // trackball_set_rgbw(RGB_MAGENTA, 0x00);
}
-void shutdown_keymap(void) { trackball_set_rgbw(RGB_RED, 0x00); }
+// void shutdown_keymap(void) { trackball_set_rgbw(RGB_RED, 0x00); }
static bool mouse_button_one, trackball_button_one;
@@ -244,16 +244,16 @@ bool process_record_keymap(uint16_t keycode, keyrecord_t *record) {
break;
#ifdef PIMORONI_TRACKBALL_ENABLE
case PM_SCROLL:
- trackball_set_scrolling(record->event.pressed);
+ // trackball_set_scrolling(record->event.pressed);
run_trackball_cleanup();
break;
case PM_PRECISION:
- if (record->event.pressed) {
- trackball_set_precision(1.5);
- } else {
- trackball_set_precision(1);
- }
- run_trackball_cleanup();
+ // if (record->event.pressed) {
+ // trackball_set_precision(1.5);
+ // } else {
+ // trackball_set_precision(1);
+ // }
+ // run_trackball_cleanup();
break;
# if !defined(MOUSEKEY_ENABLE)
case KC_MS_BTN1: