mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	Add touchpad device type
				
					
				
			It is nice to have finer granularity for device types to allow for configurations such as using `naturalScroll` on touchpads, but not on regular pointer devices such as mice.
This commit is contained in:
		
							parent
							
								
									e3cd189769
								
							
						
					
					
						commit
						6faee17d20
					
				
					 6 changed files with 30 additions and 15 deletions
				
			
		| 
						 | 
				
			
			@ -32,6 +32,9 @@ get_device_type(const char *s)
 | 
			
		|||
	if (!strcasecmp(s, "touch")) {
 | 
			
		||||
		return TOUCH_DEVICE;
 | 
			
		||||
	}
 | 
			
		||||
	if (!strcasecmp(s, "touchpad")) {
 | 
			
		||||
		return TOUCHPAD_DEVICE;
 | 
			
		||||
	}
 | 
			
		||||
	if (!strcasecmp(s, "non-touch")) {
 | 
			
		||||
		return NON_TOUCH_DEVICE;
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue