forked from eden-emu/eden
		
	hid: Stub InitializeVibrationDevice
This commit is contained in:
		
							parent
							
								
									428ce8ec29
								
							
						
					
					
						commit
						16e2e1c45f
					
				
					 1 changed files with 11 additions and 3 deletions
				
			
		|  | @ -140,15 +140,23 @@ void IAppletResource::UpdateMotion(std::uintptr_t user_data, std::chrono::nanose | ||||||
| class IActiveVibrationDeviceList final : public ServiceFramework<IActiveVibrationDeviceList> { | class IActiveVibrationDeviceList final : public ServiceFramework<IActiveVibrationDeviceList> { | ||||||
| public: | public: | ||||||
|     IActiveVibrationDeviceList() : ServiceFramework("IActiveVibrationDeviceList") { |     IActiveVibrationDeviceList() : ServiceFramework("IActiveVibrationDeviceList") { | ||||||
|  |         // clang-format off
 | ||||||
|         static const FunctionInfo functions[] = { |         static const FunctionInfo functions[] = { | ||||||
|             {0, &IActiveVibrationDeviceList::ActivateVibrationDevice, "ActivateVibrationDevice"}, |             {0, &IActiveVibrationDeviceList::InitializeVibrationDevice, "InitializeVibrationDevice"}, | ||||||
|         }; |         }; | ||||||
|  |         // clang-format on
 | ||||||
|  | 
 | ||||||
|         RegisterHandlers(functions); |         RegisterHandlers(functions); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
| private: | private: | ||||||
|     void ActivateVibrationDevice(Kernel::HLERequestContext& ctx) { |     void InitializeVibrationDevice(Kernel::HLERequestContext& ctx) { | ||||||
|         LOG_WARNING(Service_HID, "(STUBBED) called"); |         IPC::RequestParser rp{ctx}; | ||||||
|  |         const auto vibration_device_handle{rp.PopRaw<Controller_NPad::DeviceHandle>()}; | ||||||
|  | 
 | ||||||
|  |         LOG_WARNING(Service_HID, "(STUBBED) called, npad_type={}, npad_id={}, device_index={}", | ||||||
|  |                     vibration_device_handle.npad_type, vibration_device_handle.npad_id, | ||||||
|  |                     vibration_device_handle.device_index); | ||||||
| 
 | 
 | ||||||
|         IPC::ResponseBuilder rb{ctx, 2}; |         IPC::ResponseBuilder rb{ctx, 2}; | ||||||
|         rb.Push(RESULT_SUCCESS); |         rb.Push(RESULT_SUCCESS); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Morph
						Morph