summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-02-06 03:53:11 +0100
committerbunnei <bunneidev@gmail.com>2018-02-06 03:53:11 +0100
commit1963222933d7b354979a5f6a820804162d799a2c (patch)
tree97a267e925c966c713d4f603dc5e09e046baf45d /src
parentIApplicationFunctions: Stub out EnsureSaveData. (diff)
downloadyuzu-1963222933d7b354979a5f6a820804162d799a2c.tar
yuzu-1963222933d7b354979a5f6a820804162d799a2c.tar.gz
yuzu-1963222933d7b354979a5f6a820804162d799a2c.tar.bz2
yuzu-1963222933d7b354979a5f6a820804162d799a2c.tar.lz
yuzu-1963222933d7b354979a5f6a820804162d799a2c.tar.xz
yuzu-1963222933d7b354979a5f6a820804162d799a2c.tar.zst
yuzu-1963222933d7b354979a5f6a820804162d799a2c.zip
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/hid/hid.cpp16
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:
static const FunctionInfo functions[] = {
{0, &Hid::CreateAppletResource, "CreateAppletResource"},
{1, &Hid::ActivateDebugPad, "ActivateDebugPad"},
- {11, nullptr, "ActivateTouchScreen"},
+ {11, &Hid::ActivateTouchScreen, "ActivateTouchScreen"},
{66, &Hid::StartSixAxisSensor, "StartSixAxisSensor"},
{100, &Hid::SetSupportedNpadStyleSet, "SetSupportedNpadStyleSet"},
{102, &Hid::SetSupportedNpadIdType, "SetSupportedNpadIdType"},
{103, &Hid::ActivateNpad, "ActivateNpad"},
- {120, nullptr, "SetNpadJoyHoldType"},
+ {120, &Hid::SetNpadJoyHoldType, "SetNpadJoyHoldType"},
{124, nullptr, "SetNpadJoyAssignmentModeDual"},
{203, &Hid::CreateActiveVibrationDeviceList, "CreateActiveVibrationDeviceList"},
};
@@ -207,6 +207,12 @@ private:
LOG_WARNING(Service_HID, "(STUBBED) called");
}
+ void ActivateTouchScreen(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);
@@ -231,6 +237,12 @@ private:
LOG_WARNING(Service_HID, "(STUBBED) called");
}
+ void SetNpadJoyHoldType(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);