Skip to content

Commit

Permalink
Implement PLOOPY_DRAGSCROLL_INVERT option, which inverts the ploopy t…
Browse files Browse the repository at this point in the history
…rackball's DRAG_SCROLL's vertical scroll direction. (#12032)
  • Loading branch information
Anomalocaridid authored Feb 28, 2021
1 parent db7c856 commit ef49a92
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions keyboards/ploopyco/trackball/trackball.c
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,12 @@ void pointing_device_task(void) {

if (is_drag_scroll) {
mouse_report.h = mouse_report.x;
#ifdef PLOOPY_DRAGSCROLL_INVERT
// Invert vertical scroll direction
mouse_report.v = -mouse_report.y;
#else
mouse_report.v = mouse_report.y;
#endif
mouse_report.x = 0;
mouse_report.y = 0;
}
Expand Down

0 comments on commit ef49a92

Please sign in to comment.