HidServer stuff

This commit is contained in:
Isaac Marovitz 2024-07-20 14:46:03 +01:00
parent baf85f3b93
commit 0c79bfc064
No known key found for this signature in database
GPG key ID: 97250B2B09A132E1
5 changed files with 1144 additions and 12 deletions

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,10 @@
using System.Runtime.InteropServices;
namespace Ryujinx.Horizon.Sdk.Hid
{
[StructLayout(LayoutKind.Sequential, Size = 0x6)]
struct Address
{
}
}

View file

@ -17,17 +17,17 @@ namespace Ryujinx.Horizon.Sdk.Hid
Result SendKeyboardLockKeyEvent(AppletResourceUserId appletResourceUserId, KeyboardLockKeyEvent keyboardLockKeyEvent, ulong pid); Result SendKeyboardLockKeyEvent(AppletResourceUserId appletResourceUserId, KeyboardLockKeyEvent keyboardLockKeyEvent, ulong pid);
Result AcquireXpadIdEventHandle(out int arg0, ulong arg1); Result AcquireXpadIdEventHandle(out int arg0, ulong arg1);
Result ReleaseXpadIdEventHandle(ulong arg0); Result ReleaseXpadIdEventHandle(ulong arg0);
Result ActivateXpad(AppletResourceUserId appletResourceUserId, BasicXpadId arg1, ulong pid); Result ActivateXpad(AppletResourceUserId appletResourceUserId, uint basixXpadId, ulong pid);
Result GetXpadIds(out long arg0, Span<BasicXpadId> arg1); Result GetXpadIds(out long arg0, Span<uint> basicXpadIds);
Result ActivateJoyXpad(JoyXpadId arg0); Result ActivateJoyXpad(uint joyXpadId);
Result GetJoyXpadLifoHandle(out int arg0, JoyXpadId arg1); Result GetJoyXpadLifoHandle(out int arg0, uint joyXpadId);
Result GetJoyXpadIds(out long arg0, Span<JoyXpadId> arg1); Result GetJoyXpadIds(out long arg0, Span<uint> joyXpadIds);
Result ActivateSixAxisSensor(BasicXpadId arg0); Result ActivateSixAxisSensor(uint basixXpadId);
Result DeactivateSixAxisSensor(BasicXpadId arg0); Result DeactivateSixAxisSensor(uint basixXpadId);
Result GetSixAxisSensorLifoHandle(out int arg0, BasicXpadId arg1); Result GetSixAxisSensorLifoHandle(out int arg0, uint basixXpadId);
Result ActivateJoySixAxisSensor(JoyXpadId arg0); Result ActivateJoySixAxisSensor(uint joyXpadId);
Result DeactivateJoySixAxisSensor(JoyXpadId arg0); Result DeactivateJoySixAxisSensor(uint joyXpadId);
Result GetJoySixAxisSensorLifoHandle(out int arg0, JoyXpadId arg1); Result GetJoySixAxisSensorLifoHandle(out int arg0, uint joyXpadId);
Result StartSixAxisSensor(AppletResourceUserId appletResourceUserId, SixAxisSensorHandle sixAxisSensorHandle, ulong pid); Result StartSixAxisSensor(AppletResourceUserId appletResourceUserId, SixAxisSensorHandle sixAxisSensorHandle, ulong pid);
Result StopSixAxisSensor(AppletResourceUserId appletResourceUserId, SixAxisSensorHandle sixAxisSensorHandle, ulong pid); Result StopSixAxisSensor(AppletResourceUserId appletResourceUserId, SixAxisSensorHandle sixAxisSensorHandle, ulong pid);
Result IsSixAxisSensorFusionEnabled(out bool arg0, AppletResourceUserId appletResourceUserId, SixAxisSensorHandle sixAxisSensorHandle, ulong pid); Result IsSixAxisSensorFusionEnabled(out bool arg0, AppletResourceUserId appletResourceUserId, SixAxisSensorHandle sixAxisSensorHandle, ulong pid);

View file

@ -0,0 +1,8 @@
using Ryujinx.Horizon.Sdk.Sf;
namespace Ryujinx.Horizon.Sdk.Hid
{
interface IAppletResource : IServiceObject
{
}
}

View file

@ -0,0 +1,10 @@
using Ryujinx.Horizon.Common;
using Ryujinx.Horizon.Sdk.Sf;
namespace Ryujinx.Horizon.Sdk.Hid.Vibration
{
interface IActiveVibrationDeviceList : IServiceObject
{
Result ActivateVibrationDevice(VibrationDeviceHandle vibrationDeviceHandle);
}
}