summaryrefslogtreecommitdiff
path: root/keyboards/ploopyco
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2022-07-02 23:15:32 +0000
committerQMK Bot <hello@qmk.fm>2022-07-02 23:15:32 +0000
commitce29cb0f10d1ddefcce164e8f6376f67900568a6 (patch)
tree7bbb2b94616d68c34f84dc99c871d17802af491c /keyboards/ploopyco
parent4d243e94fa467efb1cac7011c75bf442fa5598f0 (diff)
parentfbf3cbcd5ce72cd7df73c3f7fac74783a73baa5e (diff)
downloadqmk_firmware-ce29cb0f10d1ddefcce164e8f6376f67900568a6.tar.gz
qmk_firmware-ce29cb0f10d1ddefcce164e8f6376f67900568a6.zip
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 f819958734..bda21b5c88 100644
--- a/keyboards/ploopyco/trackball/trackball.c
+++ b/keyboards/ploopyco/trackball/trackball.c
@@ -119,7 +119,12 @@ report_mouse_t pointing_device_task_kb(report_mouse_t mouse_report) {
process_wheel();
if (is_drag_scroll) {
+#ifdef PLOOPY_DRAGSCROLL_H_INVERT
+ // Invert horizontal scroll direction
+ mouse_report.h = -mouse_report.x;
+#else
mouse_report.h = mouse_report.x;
+#endif
#ifdef PLOOPY_DRAGSCROLL_INVERT
// Invert vertical scroll direction
mouse_report.v = -mouse_report.y;