summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGravatar bunnei2018-02-13 19:05:06 -0500
committerGravatar bunnei2018-02-14 21:16:27 -0500
commite0171844450b98a13ebf1e414cd8b45c9b6223be (patch)
tree2c2663b874b793ad458ec9d921098e4fb8db9ddc /src/core
parentMerge pull request #188 from bunnei/refactor-buffer-descriptor (diff)
downloadyuzu-e0171844450b98a13ebf1e414cd8b45c9b6223be.tar.gz
yuzu-e0171844450b98a13ebf1e414cd8b45c9b6223be.tar.xz
yuzu-e0171844450b98a13ebf1e414cd8b45c9b6223be.zip
hid: Stub GetVibrationDeviceInfo and SendVibrationValues.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/service/hid/hid.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/core/hle/service/hid/hid.cpp b/src/core/hle/service/hid/hid.cpp
index d757d2eae..3f1c18505 100644
--- a/src/core/hle/service/hid/hid.cpp
+++ b/src/core/hle/service/hid/hid.cpp
@@ -186,7 +186,9 @@ public:
186 {121, &Hid::GetNpadJoyHoldType, "GetNpadJoyHoldType"}, 186 {121, &Hid::GetNpadJoyHoldType, "GetNpadJoyHoldType"},
187 {124, nullptr, "SetNpadJoyAssignmentModeDual"}, 187 {124, nullptr, "SetNpadJoyAssignmentModeDual"},
188 {128, &Hid::SetNpadHandheldActivationMode, "SetNpadHandheldActivationMode"}, 188 {128, &Hid::SetNpadHandheldActivationMode, "SetNpadHandheldActivationMode"},
189 {200, &Hid::GetVibrationDeviceInfo, "GetVibrationDeviceInfo"},
189 {203, &Hid::CreateActiveVibrationDeviceList, "CreateActiveVibrationDeviceList"}, 190 {203, &Hid::CreateActiveVibrationDeviceList, "CreateActiveVibrationDeviceList"},
191 {206, &Hid::SendVibrationValues, "SendVibrationValues"},
190 }; 192 };
191 RegisterHandlers(functions); 193 RegisterHandlers(functions);
192 194
@@ -272,12 +274,25 @@ private:
272 LOG_WARNING(Service_HID, "(STUBBED) called"); 274 LOG_WARNING(Service_HID, "(STUBBED) called");
273 } 275 }
274 276
277 void GetVibrationDeviceInfo(Kernel::HLERequestContext& ctx) {
278 IPC::ResponseBuilder rb{ctx, 4};
279 rb.Push(RESULT_SUCCESS);
280 rb.Push<u64>(0);
281 LOG_WARNING(Service_HID, "(STUBBED) called");
282 }
283
275 void CreateActiveVibrationDeviceList(Kernel::HLERequestContext& ctx) { 284 void CreateActiveVibrationDeviceList(Kernel::HLERequestContext& ctx) {
276 IPC::ResponseBuilder rb{ctx, 2, 0, 1}; 285 IPC::ResponseBuilder rb{ctx, 2, 0, 1};
277 rb.Push(RESULT_SUCCESS); 286 rb.Push(RESULT_SUCCESS);
278 rb.PushIpcInterface<IActiveVibrationDeviceList>(); 287 rb.PushIpcInterface<IActiveVibrationDeviceList>();
279 LOG_DEBUG(Service_HID, "called"); 288 LOG_DEBUG(Service_HID, "called");
280 } 289 }
290
291 void SendVibrationValues(Kernel::HLERequestContext& ctx) {
292 IPC::ResponseBuilder rb{ctx, 2};
293 rb.Push(RESULT_SUCCESS);
294 LOG_WARNING(Service_HID, "(STUBBED) called");
295 }
281}; 296};
282 297
283void ReloadInputDevices() {} 298void ReloadInputDevices() {}