forked from eden-emu/eden
		
	input_common: Use DriverResult on all engines
This commit is contained in:
		
							parent
							
								
									e1a3bda4d9
								
							
						
					
					
						commit
						527dad7097
					
				
					 17 changed files with 100 additions and 104 deletions
				
			
		|  | @ -1178,7 +1178,7 @@ bool EmulatedController::SetVibration(std::size_t device_index, VibrationValue v | |||
|         .type = type, | ||||
|     }; | ||||
|     return output_devices[device_index]->SetVibration(status) == | ||||
|            Common::Input::VibrationError::None; | ||||
|            Common::Input::DriverResult::Success; | ||||
| } | ||||
| 
 | ||||
| bool EmulatedController::IsVibrationEnabled(std::size_t device_index) { | ||||
|  | @ -1208,8 +1208,8 @@ bool EmulatedController::SetPollingMode(Common::Input::PollingMode polling_mode) | |||
|     const auto virtual_nfc_result = nfc_output_device->SetPollingMode(polling_mode); | ||||
|     const auto mapped_nfc_result = output_device->SetPollingMode(polling_mode); | ||||
| 
 | ||||
|     return virtual_nfc_result == Common::Input::PollingError::None || | ||||
|            mapped_nfc_result == Common::Input::PollingError::None; | ||||
|     return virtual_nfc_result == Common::Input::DriverResult::Success || | ||||
|            mapped_nfc_result == Common::Input::DriverResult::Success; | ||||
| } | ||||
| 
 | ||||
| bool EmulatedController::SetCameraFormat( | ||||
|  | @ -1220,13 +1220,13 @@ bool EmulatedController::SetCameraFormat( | |||
|     auto& camera_output_device = output_devices[2]; | ||||
| 
 | ||||
|     if (right_output_device->SetCameraFormat(static_cast<Common::Input::CameraFormat>( | ||||
|             camera_format)) == Common::Input::CameraError::None) { | ||||
|             camera_format)) == Common::Input::DriverResult::Success) { | ||||
|         return true; | ||||
|     } | ||||
| 
 | ||||
|     // Fallback to Qt camera if native device doesn't have support
 | ||||
|     return camera_output_device->SetCameraFormat(static_cast<Common::Input::CameraFormat>( | ||||
|                camera_format)) == Common::Input::CameraError::None; | ||||
|                camera_format)) == Common::Input::DriverResult::Success; | ||||
| } | ||||
| 
 | ||||
| Common::ParamPackage EmulatedController::GetRingParam() const { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 german77
						german77