diff options
| author | 2018-02-05 21:53:11 -0500 | |
|---|---|---|
| committer | 2018-02-05 21:53:11 -0500 | |
| commit | 1963222933d7b354979a5f6a820804162d799a2c (patch) | |
| tree | 97a267e925c966c713d4f603dc5e09e046baf45d /src/core | |
| parent | IApplicationFunctions: Stub out EnsureSaveData. (diff) | |
| download | yuzu-1963222933d7b354979a5f6a820804162d799a2c.tar.gz yuzu-1963222933d7b354979a5f6a820804162d799a2c.tar.xz yuzu-1963222933d7b354979a5f6a820804162d799a2c.zip | |
hid: Stub ActivateTouchScreen and SetNpadJoyHoldType.
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/hle/service/hid/hid.cpp | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/core/hle/service/hid/hid.cpp b/src/core/hle/service/hid/hid.cpp index be058a64e..9c2e405ee 100644 --- a/src/core/hle/service/hid/hid.cpp +++ b/src/core/hle/service/hid/hid.cpp | |||
| @@ -174,12 +174,12 @@ public: | |||
| 174 | static const FunctionInfo functions[] = { | 174 | static const FunctionInfo functions[] = { |
| 175 | {0, &Hid::CreateAppletResource, "CreateAppletResource"}, | 175 | {0, &Hid::CreateAppletResource, "CreateAppletResource"}, |
| 176 | {1, &Hid::ActivateDebugPad, "ActivateDebugPad"}, | 176 | {1, &Hid::ActivateDebugPad, "ActivateDebugPad"}, |
| 177 | {11, nullptr, "ActivateTouchScreen"}, | 177 | {11, &Hid::ActivateTouchScreen, "ActivateTouchScreen"}, |
| 178 | {66, &Hid::StartSixAxisSensor, "StartSixAxisSensor"}, | 178 | {66, &Hid::StartSixAxisSensor, "StartSixAxisSensor"}, |
| 179 | {100, &Hid::SetSupportedNpadStyleSet, "SetSupportedNpadStyleSet"}, | 179 | {100, &Hid::SetSupportedNpadStyleSet, "SetSupportedNpadStyleSet"}, |
| 180 | {102, &Hid::SetSupportedNpadIdType, "SetSupportedNpadIdType"}, | 180 | {102, &Hid::SetSupportedNpadIdType, "SetSupportedNpadIdType"}, |
| 181 | {103, &Hid::ActivateNpad, "ActivateNpad"}, | 181 | {103, &Hid::ActivateNpad, "ActivateNpad"}, |
| 182 | {120, nullptr, "SetNpadJoyHoldType"}, | 182 | {120, &Hid::SetNpadJoyHoldType, "SetNpadJoyHoldType"}, |
| 183 | {124, nullptr, "SetNpadJoyAssignmentModeDual"}, | 183 | {124, nullptr, "SetNpadJoyAssignmentModeDual"}, |
| 184 | {203, &Hid::CreateActiveVibrationDeviceList, "CreateActiveVibrationDeviceList"}, | 184 | {203, &Hid::CreateActiveVibrationDeviceList, "CreateActiveVibrationDeviceList"}, |
| 185 | }; | 185 | }; |
| @@ -207,6 +207,12 @@ private: | |||
| 207 | LOG_WARNING(Service_HID, "(STUBBED) called"); | 207 | LOG_WARNING(Service_HID, "(STUBBED) called"); |
| 208 | } | 208 | } |
| 209 | 209 | ||
| 210 | void ActivateTouchScreen(Kernel::HLERequestContext& ctx) { | ||
| 211 | IPC::ResponseBuilder rb{ctx, 2}; | ||
| 212 | rb.Push(RESULT_SUCCESS); | ||
| 213 | LOG_WARNING(Service_HID, "(STUBBED) called"); | ||
| 214 | } | ||
| 215 | |||
| 210 | void StartSixAxisSensor(Kernel::HLERequestContext& ctx) { | 216 | void StartSixAxisSensor(Kernel::HLERequestContext& ctx) { |
| 211 | IPC::ResponseBuilder rb{ctx, 2}; | 217 | IPC::ResponseBuilder rb{ctx, 2}; |
| 212 | rb.Push(RESULT_SUCCESS); | 218 | rb.Push(RESULT_SUCCESS); |
| @@ -231,6 +237,12 @@ private: | |||
| 231 | LOG_WARNING(Service_HID, "(STUBBED) called"); | 237 | LOG_WARNING(Service_HID, "(STUBBED) called"); |
| 232 | } | 238 | } |
| 233 | 239 | ||
| 240 | void SetNpadJoyHoldType(Kernel::HLERequestContext& ctx) { | ||
| 241 | IPC::ResponseBuilder rb{ctx, 2}; | ||
| 242 | rb.Push(RESULT_SUCCESS); | ||
| 243 | LOG_WARNING(Service_HID, "(STUBBED) called"); | ||
| 244 | } | ||
| 245 | |||
| 234 | void CreateActiveVibrationDeviceList(Kernel::HLERequestContext& ctx) { | 246 | void CreateActiveVibrationDeviceList(Kernel::HLERequestContext& ctx) { |
| 235 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 247 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| 236 | rb.Push(RESULT_SUCCESS); | 248 | rb.Push(RESULT_SUCCESS); |