mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-11-03 23:28:48 +00:00 
			
		
		
		
	hid: Get rid of a double -> float truncation warning
float literals need to have the 'f' prefix.
This commit is contained in:
		
							parent
							
								
									1abb98202c
								
							
						
					
					
						commit
						3faa675d6b
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -37,7 +37,8 @@ static int enable_gyroscope_count = 0;     // positive means enabled
 | 
			
		|||
 | 
			
		||||
static PadState GetCirclePadDirectionState(s16 circle_pad_x, s16 circle_pad_y) {
 | 
			
		||||
    // 30 degree and 60 degree are angular thresholds for directions
 | 
			
		||||
    constexpr float TAN30 = 0.577350269, TAN60 = 1 / TAN30;
 | 
			
		||||
    constexpr float TAN30 = 0.577350269f;
 | 
			
		||||
    constexpr float TAN60 = 1 / TAN30;
 | 
			
		||||
    // a circle pad radius greater than 40 will trigger circle pad direction
 | 
			
		||||
    constexpr int CIRCLE_PAD_THRESHOLD_SQUARE = 40 * 40;
 | 
			
		||||
    PadState state;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue