aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Input/Motion/CemuHook/Protocol
diff options
context:
space:
mode:
authorTSR Berry <20988865+TSRBerry@users.noreply.github.com>2023-04-08 01:22:00 +0200
committerMary <thog@protonmail.com>2023-04-27 23:51:14 +0200
commitcee712105850ac3385cd0091a923438167433f9f (patch)
tree4a5274b21d8b7f938c0d0ce18736d3f2993b11b1 /Ryujinx.Input/Motion/CemuHook/Protocol
parentcd124bda587ef09668a971fa1cac1c3f0cfc9f21 (diff)
Move solution and projects to src
Diffstat (limited to 'Ryujinx.Input/Motion/CemuHook/Protocol')
-rw-r--r--Ryujinx.Input/Motion/CemuHook/Protocol/ControllerData.cs47
-rw-r--r--Ryujinx.Input/Motion/CemuHook/Protocol/ControllerInfo.cs20
-rw-r--r--Ryujinx.Input/Motion/CemuHook/Protocol/Header.cs15
-rw-r--r--Ryujinx.Input/Motion/CemuHook/Protocol/MessageType.cs9
-rw-r--r--Ryujinx.Input/Motion/CemuHook/Protocol/SharedResponse.cs51
5 files changed, 0 insertions, 142 deletions
diff --git a/Ryujinx.Input/Motion/CemuHook/Protocol/ControllerData.cs b/Ryujinx.Input/Motion/CemuHook/Protocol/ControllerData.cs
deleted file mode 100644
index 7fb72344..00000000
--- a/Ryujinx.Input/Motion/CemuHook/Protocol/ControllerData.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-using Ryujinx.Common.Memory;
-using System.Runtime.InteropServices;
-
-namespace Ryujinx.Input.Motion.CemuHook.Protocol
-{
- [StructLayout(LayoutKind.Sequential, Pack = 1)]
- struct ControllerDataRequest
- {
- public MessageType Type;
- public SubscriberType SubscriberType;
- public byte Slot;
- public Array6<byte> MacAddress;
- }
-
- [StructLayout(LayoutKind.Sequential, Pack = 1)]
- public struct ControllerDataResponse
- {
- public SharedResponse Shared;
- public byte Connected;
- public uint PacketId;
- public byte ExtraButtons;
- public byte MainButtons;
- public ushort PSExtraInput;
- public ushort LeftStickXY;
- public ushort RightStickXY;
- public uint DPadAnalog;
- public ulong MainButtonsAnalog;
-
- public Array6<byte> Touch1;
- public Array6<byte> Touch2;
-
- public ulong MotionTimestamp;
- public float AccelerometerX;
- public float AccelerometerY;
- public float AccelerometerZ;
- public float GyroscopePitch;
- public float GyroscopeYaw;
- public float GyroscopeRoll;
- }
-
- enum SubscriberType : byte
- {
- All,
- Slot,
- Mac
- }
-} \ No newline at end of file
diff --git a/Ryujinx.Input/Motion/CemuHook/Protocol/ControllerInfo.cs b/Ryujinx.Input/Motion/CemuHook/Protocol/ControllerInfo.cs
deleted file mode 100644
index 63d4524a..00000000
--- a/Ryujinx.Input/Motion/CemuHook/Protocol/ControllerInfo.cs
+++ /dev/null
@@ -1,20 +0,0 @@
-using Ryujinx.Common.Memory;
-using System.Runtime.InteropServices;
-
-namespace Ryujinx.Input.Motion.CemuHook.Protocol
-{
- [StructLayout(LayoutKind.Sequential, Pack = 1)]
- public struct ControllerInfoResponse
- {
- public SharedResponse Shared;
- private byte _zero;
- }
-
- [StructLayout(LayoutKind.Sequential, Pack = 1)]
- public struct ControllerInfoRequest
- {
- public MessageType Type;
- public int PortsCount;
- public Array4<byte> PortIndices;
- }
-} \ No newline at end of file
diff --git a/Ryujinx.Input/Motion/CemuHook/Protocol/Header.cs b/Ryujinx.Input/Motion/CemuHook/Protocol/Header.cs
deleted file mode 100644
index 57f58ff0..00000000
--- a/Ryujinx.Input/Motion/CemuHook/Protocol/Header.cs
+++ /dev/null
@@ -1,15 +0,0 @@
-using Ryujinx.Common.Memory;
-using System.Runtime.InteropServices;
-
-namespace Ryujinx.Input.Motion.CemuHook.Protocol
-{
- [StructLayout(LayoutKind.Sequential, Pack = 1)]
- public struct Header
- {
- public uint MagicString;
- public ushort Version;
- public ushort Length;
- public Array4<byte> Crc32;
- public uint Id;
- }
-} \ No newline at end of file
diff --git a/Ryujinx.Input/Motion/CemuHook/Protocol/MessageType.cs b/Ryujinx.Input/Motion/CemuHook/Protocol/MessageType.cs
deleted file mode 100644
index de1e5e90..00000000
--- a/Ryujinx.Input/Motion/CemuHook/Protocol/MessageType.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-namespace Ryujinx.Input.Motion.CemuHook.Protocol
-{
- public enum MessageType : uint
- {
- Protocol = 0x100000,
- Info,
- Data
- }
-} \ No newline at end of file
diff --git a/Ryujinx.Input/Motion/CemuHook/Protocol/SharedResponse.cs b/Ryujinx.Input/Motion/CemuHook/Protocol/SharedResponse.cs
deleted file mode 100644
index e2e1ee9b..00000000
--- a/Ryujinx.Input/Motion/CemuHook/Protocol/SharedResponse.cs
+++ /dev/null
@@ -1,51 +0,0 @@
-using Ryujinx.Common.Memory;
-using System.Runtime.InteropServices;
-
-namespace Ryujinx.Input.Motion.CemuHook.Protocol
-{
- [StructLayout(LayoutKind.Sequential, Pack = 1)]
- public struct SharedResponse
- {
- public MessageType Type;
- public byte Slot;
- public SlotState State;
- public DeviceModelType ModelType;
- public ConnectionType ConnectionType;
-
- public Array6<byte> MacAddress;
- public BatteryStatus BatteryStatus;
- }
-
- public enum SlotState : byte
- {
- Disconnected,
- Reserved,
- Connected
- }
-
- public enum DeviceModelType : byte
- {
- None,
- PartialGyro,
- FullGyro
- }
-
- public enum ConnectionType : byte
- {
- None,
- USB,
- Bluetooth
- }
-
- public enum BatteryStatus : byte
- {
- NA,
- Dying,
- Low,
- Medium,
- High,
- Full,
- Charging,
- Charged
- }
-} \ No newline at end of file