mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-11-04 07:38:47 +00:00 
			
		
		
		
	common/vector_math: Move Vec[x] types into the Common namespace
These types are within the common library, so they should be using the Common namespace.
This commit is contained in:
		
							parent
							
								
									db58652680
								
							
						
					
					
						commit
						643472e24a
					
				
					 40 changed files with 309 additions and 301 deletions
				
			
		| 
						 | 
				
			
			@ -179,7 +179,7 @@ void Module::UpdateAccelerometerCallback(u64 userdata, s64 cycles_late) {
 | 
			
		|||
    mem->accelerometer.index = next_accelerometer_index;
 | 
			
		||||
    next_accelerometer_index = (next_accelerometer_index + 1) % mem->accelerometer.entries.size();
 | 
			
		||||
 | 
			
		||||
    Math::Vec3<float> accel;
 | 
			
		||||
    Common::Vec3<float> accel;
 | 
			
		||||
    std::tie(accel, std::ignore) = motion_device->GetStatus();
 | 
			
		||||
    accel *= accelerometer_coef;
 | 
			
		||||
    // TODO(wwylele): do a time stretch like the one in UpdateGyroscopeCallback
 | 
			
		||||
| 
						 | 
				
			
			@ -226,7 +226,7 @@ void Module::UpdateGyroscopeCallback(u64 userdata, s64 cycles_late) {
 | 
			
		|||
 | 
			
		||||
    GyroscopeDataEntry& gyroscope_entry = mem->gyroscope.entries[mem->gyroscope.index];
 | 
			
		||||
 | 
			
		||||
    Math::Vec3<float> gyro;
 | 
			
		||||
    Common::Vec3<float> gyro;
 | 
			
		||||
    std::tie(std::ignore, gyro) = motion_device->GetStatus();
 | 
			
		||||
    double stretch = system.perf_stats.GetLastFrameTimeScale();
 | 
			
		||||
    gyro *= gyroscope_coef * static_cast<float>(stretch);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue