From 95a630083e4ba6a5b87ceab2d4f02230244be5ca Mon Sep 17 00:00:00 2001 From: Sadek Baroudi Date: Tue, 17 Aug 2021 01:39:47 -0700 Subject: [PATCH] updated pimoroni to support scrolling --- users/sadekbaroudi/pimoroni_trackball.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/users/sadekbaroudi/pimoroni_trackball.c b/users/sadekbaroudi/pimoroni_trackball.c index 6303ff817c..0403fbdea8 100644 --- a/users/sadekbaroudi/pimoroni_trackball.c +++ b/users/sadekbaroudi/pimoroni_trackball.c @@ -1,6 +1,7 @@ #include "pimoroni_trackball.h" #include "i2c_master.h" #include "pointing_device.h" +#include "sadekbaroudi.h" #ifndef TRACKBALL_NO_MATH #include "math.h" @@ -279,13 +280,11 @@ __attribute__((weak)) void pointing_device_task(void) { // Note that for now, if RGBLIGHT_ENABLE is not set, this won't run, so they are tied together, I can fix later // If I ever want to use scrolling, set the rules here - /* - if (false && layer_state_is(_NAVIGATION)) { + if (layer_state_is(_NAVIGATION)) { trackball_set_scrolling(true); } else { trackball_set_scrolling(false); } - */ pointing_device_set_report(mouse_report); pointing_device_send();