summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/hid/hid.cpp40
1 files changed, 39 insertions, 1 deletions
diff --git a/src/core/hle/service/hid/hid.cpp b/src/core/hle/service/hid/hid.cpp
index e7b559d45..be058a64e 100644
--- a/src/core/hle/service/hid/hid.cpp
+++ b/src/core/hle/service/hid/hid.cpp
@@ -172,7 +172,15 @@ class Hid final : public ServiceFramework<Hid> {
172public: 172public:
173 Hid() : ServiceFramework("hid") { 173 Hid() : ServiceFramework("hid") {
174 static const FunctionInfo functions[] = { 174 static const FunctionInfo functions[] = {
175 {0x00000000, &Hid::CreateAppletResource, "CreateAppletResource"}, 175 {0, &Hid::CreateAppletResource, "CreateAppletResource"},
176 {1, &Hid::ActivateDebugPad, "ActivateDebugPad"},
177 {11, nullptr, "ActivateTouchScreen"},
178 {66, &Hid::StartSixAxisSensor, "StartSixAxisSensor"},
179 {100, &Hid::SetSupportedNpadStyleSet, "SetSupportedNpadStyleSet"},
180 {102, &Hid::SetSupportedNpadIdType, "SetSupportedNpadIdType"},
181 {103, &Hid::ActivateNpad, "ActivateNpad"},
182 {120, nullptr, "SetNpadJoyHoldType"},
183 {124, nullptr, "SetNpadJoyAssignmentModeDual"},
176 {203, &Hid::CreateActiveVibrationDeviceList, "CreateActiveVibrationDeviceList"}, 184 {203, &Hid::CreateActiveVibrationDeviceList, "CreateActiveVibrationDeviceList"},
177 }; 185 };
178 RegisterHandlers(functions); 186 RegisterHandlers(functions);
@@ -193,6 +201,36 @@ private:
193 LOG_DEBUG(Service_HID, "called"); 201 LOG_DEBUG(Service_HID, "called");
194 } 202 }
195 203
204 void ActivateDebugPad(Kernel::HLERequestContext& ctx) {
205 IPC::ResponseBuilder rb{ctx, 2};
206 rb.Push(RESULT_SUCCESS);
207 LOG_WARNING(Service_HID, "(STUBBED) called");
208 }
209
210 void StartSixAxisSensor(Kernel::HLERequestContext& ctx) {
211 IPC::ResponseBuilder rb{ctx, 2};
212 rb.Push(RESULT_SUCCESS);
213 LOG_WARNING(Service_HID, "(STUBBED) called");
214 }
215
216 void SetSupportedNpadStyleSet(Kernel::HLERequestContext& ctx) {
217 IPC::ResponseBuilder rb{ctx, 2};
218 rb.Push(RESULT_SUCCESS);
219 LOG_WARNING(Service_HID, "(STUBBED) called");
220 }
221
222 void SetSupportedNpadIdType(Kernel::HLERequestContext& ctx) {
223 IPC::ResponseBuilder rb{ctx, 2};
224 rb.Push(RESULT_SUCCESS);
225 LOG_WARNING(Service_HID, "(STUBBED) called");
226 }
227
228 void ActivateNpad(Kernel::HLERequestContext& ctx) {
229 IPC::ResponseBuilder rb{ctx, 2};
230 rb.Push(RESULT_SUCCESS);
231 LOG_WARNING(Service_HID, "(STUBBED) called");
232 }
233
196 void CreateActiveVibrationDeviceList(Kernel::HLERequestContext& ctx) { 234 void CreateActiveVibrationDeviceList(Kernel::HLERequestContext& ctx) {
197 IPC::ResponseBuilder rb{ctx, 2, 0, 1}; 235 IPC::ResponseBuilder rb{ctx, 2, 0, 1};
198 rb.Push(RESULT_SUCCESS); 236 rb.Push(RESULT_SUCCESS);