~ruther/qmk_firmware

fbf3cbcd5ce72cd7df73c3f7fac74783a73baa5e — br 3 years ago 71f9a07
Added PLOOPY_DRAGSCROLL_H_INVERT (#17453)

1 files changed, 5 insertions(+), 0 deletions(-)

M keyboards/ploopyco/trackball/trackball.c
M keyboards/ploopyco/trackball/trackball.c => keyboards/ploopyco/trackball/trackball.c +5 -0
@@ 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;