mirror of
				https://git.suyu.dev/suyu/suyu
				synced 2025-11-04 00:49:02 -06:00 
			
		
		
		
	input_common: Fix issue where ring and irs are enabled at the same time
This commit is contained in:
		@@ -74,8 +74,6 @@ void IRS::DeactivateIrsensor(Kernel::HLERequestContext& ctx) {
 | 
			
		||||
    LOG_WARNING(Service_IRS, "(STUBBED) called, applet_resource_user_id={}",
 | 
			
		||||
                applet_resource_user_id);
 | 
			
		||||
 | 
			
		||||
    npad_device->SetPollingMode(Common::Input::PollingMode::Active);
 | 
			
		||||
 | 
			
		||||
    IPC::ResponseBuilder rb{ctx, 2};
 | 
			
		||||
    rb.Push(ResultSuccess);
 | 
			
		||||
}
 | 
			
		||||
@@ -514,7 +512,7 @@ void IRS::StopImageProcessorAsync(Kernel::HLERequestContext& ctx) {
 | 
			
		||||
    auto result = IsIrCameraHandleValid(parameters.camera_handle);
 | 
			
		||||
    if (result.IsSuccess()) {
 | 
			
		||||
        // TODO: Stop image processor async
 | 
			
		||||
        npad_device->SetPollingMode(Common::Input::PollingMode::IR);
 | 
			
		||||
        npad_device->SetPollingMode(Common::Input::PollingMode::Active);
 | 
			
		||||
        result = ResultSuccess;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user