summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-02-04 23:06:14 +0100
committerbunnei <bunneidev@gmail.com>2018-02-04 23:06:14 +0100
commitad97414057f31b0711b030adf4cf9de4f01c1f6b (patch)
tree1b421e2cfe5534527c22a0da91707b445826673d /src/core/hle/service
parentlogger: Use Service_HID category where applicable. (diff)
downloadyuzu-ad97414057f31b0711b030adf4cf9de4f01c1f6b.tar
yuzu-ad97414057f31b0711b030adf4cf9de4f01c1f6b.tar.gz
yuzu-ad97414057f31b0711b030adf4cf9de4f01c1f6b.tar.bz2
yuzu-ad97414057f31b0711b030adf4cf9de4f01c1f6b.tar.lz
yuzu-ad97414057f31b0711b030adf4cf9de4f01c1f6b.tar.xz
yuzu-ad97414057f31b0711b030adf4cf9de4f01c1f6b.tar.zst
yuzu-ad97414057f31b0711b030adf4cf9de4f01c1f6b.zip
Diffstat (limited to 'src/core/hle/service')
-rw-r--r--src/core/hle/service/hid/hid.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/core/hle/service/hid/hid.cpp b/src/core/hle/service/hid/hid.cpp
index e920560ee..e7b559d45 100644
--- a/src/core/hle/service/hid/hid.cpp
+++ b/src/core/hle/service/hid/hid.cpp
@@ -151,11 +151,29 @@ private:
buttons;
};
+class IActiveVibrationDeviceList final : public ServiceFramework<IActiveVibrationDeviceList> {
+public:
+ IActiveVibrationDeviceList() : ServiceFramework("IActiveVibrationDeviceList") {
+ static const FunctionInfo functions[] = {
+ {0, &IActiveVibrationDeviceList::ActivateVibrationDevice, "ActivateVibrationDevice"},
+ };
+ RegisterHandlers(functions);
+ }
+
+private:
+ void ActivateVibrationDevice(Kernel::HLERequestContext& ctx) {
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(RESULT_SUCCESS);
+ LOG_WARNING(Service_HID, "(STUBBED) called");
+ }
+};
+
class Hid final : public ServiceFramework<Hid> {
public:
Hid() : ServiceFramework("hid") {
static const FunctionInfo functions[] = {
{0x00000000, &Hid::CreateAppletResource, "CreateAppletResource"},
+ {203, &Hid::CreateActiveVibrationDeviceList, "CreateActiveVibrationDeviceList"},
};
RegisterHandlers(functions);
}
@@ -174,6 +192,13 @@ private:
rb.PushIpcInterface<IAppletResource>(applet_resource);
LOG_DEBUG(Service_HID, "called");
}
+
+ void CreateActiveVibrationDeviceList(Kernel::HLERequestContext& ctx) {
+ IPC::ResponseBuilder rb{ctx, 2, 0, 1};
+ rb.Push(RESULT_SUCCESS);
+ rb.PushIpcInterface<IActiveVibrationDeviceList>();
+ LOG_DEBUG(Service_HID, "called");
+ }
};
void ReloadInputDevices() {}