From fbf3cbcd5ce72cd7df73c3f7fac74783a73baa5e Mon Sep 17 00:00:00 2001 From: br <284789+b-@users.noreply.github.com> Date: Sat, 2 Jul 2022 19:13:45 -0400 Subject: Added PLOOPY_DRAGSCROLL_H_INVERT (#17453) --- keyboards/ploopyco/trackball/trackball.c | 5 +++++ 1 file changed, 5 insertions(+) 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; -- cgit v1.2.3