ServiceHid.cs 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. using Ryujinx.Core.OsHle.Handles;
  2. using Ryujinx.Core.OsHle.Objects.Hid;
  3. using static Ryujinx.Core.OsHle.Objects.ObjHelper;
  4. namespace Ryujinx.Core.OsHle.Services
  5. {
  6. static partial class Service
  7. {
  8. public static long HidCreateAppletResource(ServiceCtx Context)
  9. {
  10. HSharedMem HidHndData = Context.Ns.Os.Handles.GetData<HSharedMem>(Context.Ns.Os.HidHandle);
  11. MakeObject(Context, new IAppletResource(HidHndData));
  12. return 0;
  13. }
  14. public static long HidActivateTouchScreen(ServiceCtx Context)
  15. {
  16. long Unknown = Context.RequestData.ReadInt64();
  17. return 0;
  18. }
  19. public static long HidGetSupportedNpadStyleSet(ServiceCtx Context)
  20. {
  21. Context.ResponseData.Write(0);
  22. return 0;
  23. }
  24. public static long HidSetSupportedNpadStyleSet(ServiceCtx Context)
  25. {
  26. long Unknown0 = Context.RequestData.ReadInt64();
  27. long Unknown8 = Context.RequestData.ReadInt64();
  28. return 0;
  29. }
  30. public static long HidSetSupportedNpadIdType(ServiceCtx Context)
  31. {
  32. long Unknown = Context.RequestData.ReadInt64();
  33. return 0;
  34. }
  35. public static long HidActivateNpad(ServiceCtx Context)
  36. {
  37. long Unknown = Context.RequestData.ReadInt64();
  38. return 0;
  39. }
  40. public static long HidSetNpadJoyHoldType(ServiceCtx Context)
  41. {
  42. long Unknown0 = Context.RequestData.ReadInt64();
  43. long Unknown8 = Context.RequestData.ReadInt64();
  44. return 0;
  45. }
  46. public static long HidGetNpadJoyHoldType(ServiceCtx Context)
  47. {
  48. Context.ResponseData.Write(0L);
  49. return 0;
  50. }
  51. public static long HidCreateActiveVibrationDeviceList(ServiceCtx Context)
  52. {
  53. MakeObject(Context, new IActiveApplicationDeviceList());
  54. return 0;
  55. }
  56. }
  57. }