summaryrefslogtreecommitdiff
path: root/keyboards/ploopyco
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2021-02-28 06:16:09 +0000
committerQMK Bot <hello@qmk.fm>2021-02-28 06:16:09 +0000
commit02dc3b672217a4bc28b68c944863efd34dc28108 (patch)
tree34df1a09535d30f0fbf87132ff4dd815fb041cc1 /keyboards/ploopyco
parent0f084751b460674f5866dbf741a93052ddf81285 (diff)
parentef49a9243b15cade7bec006f90cd0457c247e000 (diff)
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'keyboards/ploopyco')
-rw-r--r--keyboards/ploopyco/trackball/trackball.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/keyboards/ploopyco/trackball/trackball.c b/keyboards/ploopyco/trackball/trackball.c
index f59f9788f9..c5effd0050 100644
--- a/keyboards/ploopyco/trackball/trackball.c
+++ b/keyboards/ploopyco/trackball/trackball.c
@@ -255,7 +255,12 @@ void pointing_device_task(void) {
if (is_drag_scroll) {
mouse_report.h = mouse_report.x;
+#ifdef PLOOPY_DRAGSCROLL_INVERT
+ // Invert vertical scroll direction
+ mouse_report.v = -mouse_report.y;
+#else
mouse_report.v = mouse_report.y;
+#endif
mouse_report.x = 0;
mouse_report.y = 0;
}