diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/hid/hid.cpp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/core/hle/service/hid/hid.cpp b/src/core/hle/service/hid/hid.cpp index fb57dec02..86b83dcc6 100644 --- a/src/core/hle/service/hid/hid.cpp +++ b/src/core/hle/service/hid/hid.cpp | |||
| @@ -140,15 +140,23 @@ void IAppletResource::UpdateMotion(std::uintptr_t user_data, std::chrono::nanose | |||
| 140 | class IActiveVibrationDeviceList final : public ServiceFramework<IActiveVibrationDeviceList> { | 140 | class IActiveVibrationDeviceList final : public ServiceFramework<IActiveVibrationDeviceList> { |
| 141 | public: | 141 | public: |
| 142 | IActiveVibrationDeviceList() : ServiceFramework("IActiveVibrationDeviceList") { | 142 | IActiveVibrationDeviceList() : ServiceFramework("IActiveVibrationDeviceList") { |
| 143 | // clang-format off | ||
| 143 | static const FunctionInfo functions[] = { | 144 | static const FunctionInfo functions[] = { |
| 144 | {0, &IActiveVibrationDeviceList::ActivateVibrationDevice, "ActivateVibrationDevice"}, | 145 | {0, &IActiveVibrationDeviceList::InitializeVibrationDevice, "InitializeVibrationDevice"}, |
| 145 | }; | 146 | }; |
| 147 | // clang-format on | ||
| 148 | |||
| 146 | RegisterHandlers(functions); | 149 | RegisterHandlers(functions); |
| 147 | } | 150 | } |
| 148 | 151 | ||
| 149 | private: | 152 | private: |
| 150 | void ActivateVibrationDevice(Kernel::HLERequestContext& ctx) { | 153 | void InitializeVibrationDevice(Kernel::HLERequestContext& ctx) { |
| 151 | LOG_WARNING(Service_HID, "(STUBBED) called"); | 154 | IPC::RequestParser rp{ctx}; |
| 155 | const auto vibration_device_handle{rp.PopRaw<Controller_NPad::DeviceHandle>()}; | ||
| 156 | |||
| 157 | LOG_WARNING(Service_HID, "(STUBBED) called, npad_type={}, npad_id={}, device_index={}", | ||
| 158 | vibration_device_handle.npad_type, vibration_device_handle.npad_id, | ||
| 159 | vibration_device_handle.device_index); | ||
| 152 | 160 | ||
| 153 | IPC::ResponseBuilder rb{ctx, 2}; | 161 | IPC::ResponseBuilder rb{ctx, 2}; |
| 154 | rb.Push(RESULT_SUCCESS); | 162 | rb.Push(RESULT_SUCCESS); |