dmx: clarify a valuator mode condition.
Relative is defined as 0, so change the condition to be more obvious. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
This commit is contained in:
		
							parent
							
								
									b5ef88c911
								
							
						
					
					
						commit
						e909af88bf
					
				| 
						 | 
				
			
			@ -301,7 +301,7 @@ static void dmxExtMotion(DMXLocalInputInfoPtr dmxLocal,
 | 
			
		|||
 | 
			
		||||
    if (axesCount > DMX_MAX_AXES) axesCount = DMX_MAX_AXES;
 | 
			
		||||
 | 
			
		||||
    if (!pDevice->valuator->mode && axesCount == 2) {
 | 
			
		||||
    if ((pDevice->valuator->mode == Relative) && axesCount == 2) {
 | 
			
		||||
                                /* The dmx console is a relative mode
 | 
			
		||||
                                 * device that sometimes reports
 | 
			
		||||
                                 * absolute motion.  It only has two
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue