summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/hid/hid.cpp
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2020-10-06 10:50:15 +0200
committerMorph <39850852+Morph1984@users.noreply.github.com>2020-11-16 05:33:20 +0100
commit16e2e1c45f8d510946645199140b20e1bde3e7da (patch)
tree892e784ec9237e71796ca65c7a7a8f1023cdb7a6 /src/core/hle/service/hid/hid.cpp
parentcontrollers/npad: Rename NPadType to NpadStyleSet (diff)
downloadyuzu-16e2e1c45f8d510946645199140b20e1bde3e7da.tar
yuzu-16e2e1c45f8d510946645199140b20e1bde3e7da.tar.gz
yuzu-16e2e1c45f8d510946645199140b20e1bde3e7da.tar.bz2
yuzu-16e2e1c45f8d510946645199140b20e1bde3e7da.tar.lz
yuzu-16e2e1c45f8d510946645199140b20e1bde3e7da.tar.xz
yuzu-16e2e1c45f8d510946645199140b20e1bde3e7da.tar.zst
yuzu-16e2e1c45f8d510946645199140b20e1bde3e7da.zip
Diffstat (limited to 'src/core/hle/service/hid/hid.cpp')
-rw-r--r--src/core/hle/service/hid/hid.cpp14
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
class IActiveVibrationDeviceList final : public ServiceFramework<IActiveVibrationDeviceList> {
public:
IActiveVibrationDeviceList() : ServiceFramework("IActiveVibrationDeviceList") {
+ // clang-format off
static const FunctionInfo functions[] = {
- {0, &IActiveVibrationDeviceList::ActivateVibrationDevice, "ActivateVibrationDevice"},
+ {0, &IActiveVibrationDeviceList::InitializeVibrationDevice, "InitializeVibrationDevice"},
};
+ // clang-format on
+
RegisterHandlers(functions);
}
private:
- void ActivateVibrationDevice(Kernel::HLERequestContext& ctx) {
- LOG_WARNING(Service_HID, "(STUBBED) called");
+ void InitializeVibrationDevice(Kernel::HLERequestContext& ctx) {
+ 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};
rb.Push(RESULT_SUCCESS);