2018-02-20 21:09:23 +01:00
|
|
|
using Ryujinx.Core.OsHle.Handles;
|
|
|
|
using Ryujinx.Core.OsHle.Objects.Hid;
|
2018-02-05 00:08:20 +01:00
|
|
|
|
2018-02-20 21:09:23 +01:00
|
|
|
using static Ryujinx.Core.OsHle.Objects.ObjHelper;
|
2018-02-05 00:08:20 +01:00
|
|
|
|
2018-02-20 21:09:23 +01:00
|
|
|
namespace Ryujinx.Core.OsHle.Services
|
2018-02-05 00:08:20 +01:00
|
|
|
{
|
|
|
|
static partial class Service
|
|
|
|
{
|
|
|
|
public static long HidCreateAppletResource(ServiceCtx Context)
|
|
|
|
{
|
|
|
|
HSharedMem HidHndData = Context.Ns.Os.Handles.GetData<HSharedMem>(Context.Ns.Os.HidHandle);
|
|
|
|
|
2018-02-10 01:14:55 +01:00
|
|
|
MakeObject(Context, new IAppletResource(HidHndData));
|
2018-02-05 00:08:20 +01:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static long HidActivateTouchScreen(ServiceCtx Context)
|
|
|
|
{
|
|
|
|
long Unknown = Context.RequestData.ReadInt64();
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static long HidSetSupportedNpadStyleSet(ServiceCtx Context)
|
|
|
|
{
|
|
|
|
long Unknown0 = Context.RequestData.ReadInt64();
|
|
|
|
long Unknown8 = Context.RequestData.ReadInt64();
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static long HidSetSupportedNpadIdType(ServiceCtx Context)
|
|
|
|
{
|
|
|
|
long Unknown = Context.RequestData.ReadInt64();
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static long HidActivateNpad(ServiceCtx Context)
|
|
|
|
{
|
|
|
|
long Unknown = Context.RequestData.ReadInt64();
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static long HidSetNpadJoyHoldType(ServiceCtx Context)
|
|
|
|
{
|
|
|
|
long Unknown0 = Context.RequestData.ReadInt64();
|
|
|
|
long Unknown8 = Context.RequestData.ReadInt64();
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|