diff options
| -rw-r--r-- | keyboards/ploopyco/trackball/trackball.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/keyboards/ploopyco/trackball/trackball.c b/keyboards/ploopyco/trackball/trackball.c index f59f9788f..c5effd005 100644 --- a/keyboards/ploopyco/trackball/trackball.c +++ b/keyboards/ploopyco/trackball/trackball.c | |||
| @@ -255,7 +255,12 @@ void pointing_device_task(void) { | |||
| 255 | 255 | ||
| 256 | if (is_drag_scroll) { | 256 | if (is_drag_scroll) { |
| 257 | mouse_report.h = mouse_report.x; | 257 | mouse_report.h = mouse_report.x; |
| 258 | #ifdef PLOOPY_DRAGSCROLL_INVERT | ||
| 259 | // Invert vertical scroll direction | ||
| 260 | mouse_report.v = -mouse_report.y; | ||
| 261 | #else | ||
| 258 | mouse_report.v = mouse_report.y; | 262 | mouse_report.v = mouse_report.y; |
| 263 | #endif | ||
| 259 | mouse_report.x = 0; | 264 | mouse_report.x = 0; |
| 260 | mouse_report.y = 0; | 265 | mouse_report.y = 0; |
| 261 | } | 266 | } |
