Implement PLOOPY_DRAGSCROLL_INVERT option, which inverts the ploopy trackball's DRAG_SCROLL's vertical scroll direction. (#12032)
This commit is contained in:
		
							parent
							
								
									db7c8562ed
								
							
						
					
					
						commit
						ef49a9243b
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
					@ -255,7 +255,12 @@ void pointing_device_task(void) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (is_drag_scroll) {
 | 
					    if (is_drag_scroll) {
 | 
				
			||||||
        mouse_report.h = mouse_report.x;
 | 
					        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;
 | 
					        mouse_report.v = mouse_report.y;
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
        mouse_report.x = 0;
 | 
					        mouse_report.x = 0;
 | 
				
			||||||
        mouse_report.y = 0;
 | 
					        mouse_report.y = 0;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue