summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-02-05 04:24:20 +0100
committerbunnei <bunneidev@gmail.com>2018-02-05 04:24:20 +0100
commit119f02a439b0e5b20f9176ba0df4d12857b50ffa (patch)
treecb5ad8abfc2884739b9de2521127a74cb88a4c56
parenthid: Implement CreateActiveVibrationDeviceList. (diff)
downloadyuzu-119f02a439b0e5b20f9176ba0df4d12857b50ffa.tar
yuzu-119f02a439b0e5b20f9176ba0df4d12857b50ffa.tar.gz
yuzu-119f02a439b0e5b20f9176ba0df4d12857b50ffa.tar.bz2
yuzu-119f02a439b0e5b20f9176ba0df4d12857b50ffa.tar.lz
yuzu-119f02a439b0e5b20f9176ba0df4d12857b50ffa.tar.xz
yuzu-119f02a439b0e5b20f9176ba0df4d12857b50ffa.tar.zst
yuzu-119f02a439b0e5b20f9176ba0df4d12857b50ffa.zip
-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> {
public:
Hid() : ServiceFramework("hid") {
static const FunctionInfo functions[] = {
- {0x00000000, &Hid::CreateAppletResource, "CreateAppletResource"},
+ {0, &Hid::CreateAppletResource, "CreateAppletResource"},
+ {1, &Hid::ActivateDebugPad, "ActivateDebugPad"},
+ {11, nullptr, "ActivateTouchScreen"},
+ {66, &Hid::StartSixAxisSensor, "StartSixAxisSensor"},
+ {100, &Hid::SetSupportedNpadStyleSet, "SetSupportedNpadStyleSet"},
+ {102, &Hid::SetSupportedNpadIdType, "SetSupportedNpadIdType"},
+ {103, &Hid::ActivateNpad, "ActivateNpad"},
+ {120, nullptr, "SetNpadJoyHoldType"},
+ {124, nullptr, "SetNpadJoyAssignmentModeDual"},
{203, &Hid::CreateActiveVibrationDeviceList, "CreateActiveVibrationDeviceList"},
};
RegisterHandlers(functions);
@@ -193,6 +201,36 @@ private:
LOG_DEBUG(Service_HID, "called");
}
+ void ActivateDebugPad(Kernel::HLERequestContext& ctx) {
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(RESULT_SUCCESS);
+ LOG_WARNING(Service_HID, "(STUBBED) called");
+ }
+
+ void StartSixAxisSensor(Kernel::HLERequestContext& ctx) {
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(RESULT_SUCCESS);
+ LOG_WARNING(Service_HID, "(STUBBED) called");
+ }
+
+ void SetSupportedNpadStyleSet(Kernel::HLERequestContext& ctx) {
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(RESULT_SUCCESS);
+ LOG_WARNING(Service_HID, "(STUBBED) called");
+ }
+
+ void SetSupportedNpadIdType(Kernel::HLERequestContext& ctx) {
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(RESULT_SUCCESS);
+ LOG_WARNING(Service_HID, "(STUBBED) called");
+ }
+
+ void ActivateNpad(Kernel::HLERequestContext& ctx) {
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(RESULT_SUCCESS);
+ LOG_WARNING(Service_HID, "(STUBBED) called");
+ }
+
void CreateActiveVibrationDeviceList(Kernel::HLERequestContext& ctx) {
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
rb.Push(RESULT_SUCCESS);