mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	Handle cases when std::optional does not contain a value
This commit is contained in:
		
							parent
							
								
									d37a2270d6
								
							
						
					
					
						commit
						2306af3600
					
				
					 9 changed files with 15 additions and 7 deletions
				
			
		|  | @ -42,7 +42,7 @@ public: | |||
|     std::unique_ptr<Input::TouchDevice> Create(const Common::ParamPackage& params) override { | ||||
|         { | ||||
|             std::lock_guard<std::mutex> guard(status->update_mutex); | ||||
|             status->touch_calibration.reset(); | ||||
|             status->touch_calibration.emplace(); | ||||
|             // These default values work well for DS4 but probably not other touch inputs
 | ||||
|             status->touch_calibration->min_x = params.Get("min_x", 100); | ||||
|             status->touch_calibration->min_y = params.Get("min_y", 50); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue