summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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:
151 buttons; 151 buttons;
152}; 152};
153 153
154class IActiveVibrationDeviceList final : public ServiceFramework<IActiveVibrationDeviceList> {
155public:
156 IActiveVibrationDeviceList() : ServiceFramework("IActiveVibrationDeviceList") {
157 static const FunctionInfo functions[] = {
158 {0, &IActiveVibrationDeviceList::ActivateVibrationDevice, "ActivateVibrationDevice"},
159 };
160 RegisterHandlers(functions);
161 }
162
163private:
164 void ActivateVibrationDevice(Kernel::HLERequestContext& ctx) {
165 IPC::ResponseBuilder rb{ctx, 2};
166 rb.Push(RESULT_SUCCESS);
167 LOG_WARNING(Service_HID, "(STUBBED) called");
168 }
169};
170
154class Hid final : public ServiceFramework<Hid> { 171class Hid final : public ServiceFramework<Hid> {
155public: 172public:
156 Hid() : ServiceFramework("hid") { 173 Hid() : ServiceFramework("hid") {
157 static const FunctionInfo functions[] = { 174 static const FunctionInfo functions[] = {
158 {0x00000000, &Hid::CreateAppletResource, "CreateAppletResource"}, 175 {0x00000000, &Hid::CreateAppletResource, "CreateAppletResource"},
176 {203, &Hid::CreateActiveVibrationDeviceList, "CreateActiveVibrationDeviceList"},
159 }; 177 };
160 RegisterHandlers(functions); 178 RegisterHandlers(functions);
161 } 179 }
@@ -174,6 +192,13 @@ private:
174 rb.PushIpcInterface<IAppletResource>(applet_resource); 192 rb.PushIpcInterface<IAppletResource>(applet_resource);
175 LOG_DEBUG(Service_HID, "called"); 193 LOG_DEBUG(Service_HID, "called");
176 } 194 }
195
196 void CreateActiveVibrationDeviceList(Kernel::HLERequestContext& ctx) {
197 IPC::ResponseBuilder rb{ctx, 2, 0, 1};
198 rb.Push(RESULT_SUCCESS);
199 rb.PushIpcInterface<IActiveVibrationDeviceList>();
200 LOG_DEBUG(Service_HID, "called");
201 }
177}; 202};
178 203
179void ReloadInputDevices() {} 204void ReloadInputDevices() {}