diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/hid/hid.cpp | 25 |
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 | ||
| 154 | class IActiveVibrationDeviceList final : public ServiceFramework<IActiveVibrationDeviceList> { | ||
| 155 | public: | ||
| 156 | IActiveVibrationDeviceList() : ServiceFramework("IActiveVibrationDeviceList") { | ||
| 157 | static const FunctionInfo functions[] = { | ||
| 158 | {0, &IActiveVibrationDeviceList::ActivateVibrationDevice, "ActivateVibrationDevice"}, | ||
| 159 | }; | ||
| 160 | RegisterHandlers(functions); | ||
| 161 | } | ||
| 162 | |||
| 163 | private: | ||
| 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 | |||
| 154 | class Hid final : public ServiceFramework<Hid> { | 171 | class Hid final : public ServiceFramework<Hid> { |
| 155 | public: | 172 | public: |
| 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 | ||
| 179 | void ReloadInputDevices() {} | 204 | void ReloadInputDevices() {} |