Input: Store clipped absolute axes in the mask
Change moveAbsolute to be more symmetric with moveRelative by storing a clipped axis value back in the mask, rather than just in dev->last.valuators. Signed-off-by: Daniel Stone <daniel@fooishbar.org> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
		
							parent
							
								
									7e919ef5bf
								
							
						
					
					
						commit
						6a6b4eb05c
					
				| 
						 | 
				
			
			@ -721,6 +721,7 @@ moveAbsolute(DeviceIntPtr dev, int *x, int *y, ValuatorMask *mask)
 | 
			
		|||
        {
 | 
			
		||||
            dev->last.valuators[i] = valuator_mask_get(mask, i);
 | 
			
		||||
            clipAxis(dev, i, &dev->last.valuators[i]);
 | 
			
		||||
            valuator_mask_set(mask, i, dev->last.valuators[i]);
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue