aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremmauss <emmausssss@gmail.com>2018-03-13 23:59:17 +0200
committergdkchan <gab.dark.100@gmail.com>2018-03-13 18:59:17 -0300
commit4d90d60119992556b28cde119e9a94b8ac4aebf8 (patch)
tree40fd57a75a26193feb8d2cbf1c1b154832db7926
parent6f4282daf8b5bfa650dc8c43714c7955dc779cd1 (diff)
stub some hid service functions (#57)
-rw-r--r--Ryujinx.Core/OsHle/Services/Hid/ServiceHid.cs60
1 files changed, 49 insertions, 11 deletions
diff --git a/Ryujinx.Core/OsHle/Services/Hid/ServiceHid.cs b/Ryujinx.Core/OsHle/Services/Hid/ServiceHid.cs
index b1f93072..d7b53fc9 100644
--- a/Ryujinx.Core/OsHle/Services/Hid/ServiceHid.cs
+++ b/Ryujinx.Core/OsHle/Services/Hid/ServiceHid.cs
@@ -1,5 +1,6 @@
using Ryujinx.Core.OsHle.Ipc;
using System.Collections.Generic;
+using Ryujinx.Core.Input;
using static Ryujinx.Core.OsHle.IpcServices.ObjHelper;
@@ -15,17 +16,20 @@ namespace Ryujinx.Core.OsHle.IpcServices.Hid
{
m_Commands = new Dictionary<int, ServiceProcessRequest>()
{
- { 0, CreateAppletResource },
- { 11, ActivateTouchScreen },
- { 100, SetSupportedNpadStyleSet },
- { 101, GetSupportedNpadStyleSet },
- { 102, SetSupportedNpadIdType },
- { 103, ActivateNpad },
- { 120, SetNpadJoyHoldType },
- { 121, GetNpadJoyHoldType },
- { 200, GetVibrationDeviceInfo },
- { 203, CreateActiveVibrationDeviceList },
- { 206, SendVibrationValues }
+ { 0, CreateAppletResource },
+ { 11, ActivateTouchScreen },
+ { 100, SetSupportedNpadStyleSet },
+ { 101, GetSupportedNpadStyleSet },
+ { 102, SetSupportedNpadIdType },
+ { 103, ActivateNpad },
+ { 120, SetNpadJoyHoldType },
+ { 122, SetNpadJoyAssignmentModeSingleByDefault },
+ { 123, SetNpadJoyAssignmentModeSingle },
+ { 124, SetNpadJoyAssignmentModeDual },
+ { 125, MergeSingleJoyAsDualJoy },
+ { 200, GetVibrationDeviceInfo },
+ { 203, CreateActiveVibrationDeviceList },
+ { 206, SendVibrationValues }
};
}
@@ -87,6 +91,40 @@ namespace Ryujinx.Core.OsHle.IpcServices.Hid
return 0;
}
+ public long SetNpadJoyAssignmentModeSingleByDefault(ServiceCtx Context)
+ {
+ HidControllerId HidControllerId = (HidControllerId)Context.RequestData.ReadInt32();
+ long AppletUserResourseId = Context.RequestData.ReadInt64();
+
+ return 0;
+ }
+
+ public long SetNpadJoyAssignmentModeSingle(ServiceCtx Context)
+ {
+ HidControllerId HidControllerId = (HidControllerId)Context.RequestData.ReadInt32();
+ long AppletUserResourseId = Context.RequestData.ReadInt64();
+ long NpadJoyDeviceType = Context.RequestData.ReadInt64();
+
+ return 0;
+ }
+
+ public long SetNpadJoyAssignmentModeDual(ServiceCtx Context)
+ {
+ HidControllerId HidControllerId = (HidControllerId)Context.RequestData.ReadInt32();
+ long AppletUserResourseId = Context.RequestData.ReadInt64();
+
+ return 0;
+ }
+
+ public long MergeSingleJoyAsDualJoy(ServiceCtx Context)
+ {
+ long Unknown0 = Context.RequestData.ReadInt32();
+ long Unknown8 = Context.RequestData.ReadInt32();
+ long AppletUserResourseId = Context.RequestData.ReadInt64();
+
+ return 0;
+ }
+
public long GetVibrationDeviceInfo(ServiceCtx Context)
{
int VibrationDeviceHandle = Context.RequestData.ReadInt32();