Add PS2_MOUSE_ROTATE to compensate for device orientation (#8650)
* Add PS2_MOUSE_ROTATE to compensate for device orientation * fixup! Add PS2_MOUSE_ROTATE to compensate for device orientation * Reformat with IndentPPDirectives: AfterHash as per #6316
This commit is contained in:
		
							parent
							
								
									b5aa5e4338
								
							
						
					
					
						commit
						07c75feba3
					
				
					 2 changed files with 34 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -266,6 +266,25 @@ To reverse the scroll axes you can put:
 | 
			
		|||
 | 
			
		||||
into config.h.
 | 
			
		||||
 | 
			
		||||
### Rotate Mouse Axes :id=rotate-mouse-axes
 | 
			
		||||
 | 
			
		||||
Transform the output of the device with a clockwise rotation of 90, 180, or 270
 | 
			
		||||
degrees.
 | 
			
		||||
 | 
			
		||||
When compensating for device orientation, rotate the output the same amount in
 | 
			
		||||
the opposite direction.  E.g. if the normal device orientation is considered to
 | 
			
		||||
be North-facing, compensate as follows:
 | 
			
		||||
 | 
			
		||||
```c
 | 
			
		||||
#define PS2_MOUSE_ROTATE 270 /* Compensate for East-facing device orientation. */
 | 
			
		||||
```
 | 
			
		||||
```c
 | 
			
		||||
#define PS2_MOUSE_ROTATE 180 /* Compensate for South-facing device orientation. */
 | 
			
		||||
```
 | 
			
		||||
```c
 | 
			
		||||
#define PS2_MOUSE_ROTATE 90 /* Compensate for West-facing device orientation. */
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
### Debug Settings :id=debug-settings
 | 
			
		||||
 | 
			
		||||
To debug the mouse, add `debug_mouse = true` or enable via bootmagic.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue