summaryrefslogtreecommitdiff
path: root/keyboards/ploopyco
diff options
context:
space:
mode:
authorbr <284789+b-@users.noreply.github.com>2022-07-02 19:13:45 -0400
committerGitHub <noreply@github.com>2022-07-03 00:13:45 +0100
commitfbf3cbcd5ce72cd7df73c3f7fac74783a73baa5e (patch)
treedb85aced51c3509dde5e2dd7094bea67bc6b4571 /keyboards/ploopyco
parent71f9a07b0f1d9914ea9e21d1869d6dafb596aacd (diff)
Added PLOOPY_DRAGSCROLL_H_INVERT (#17453)
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;