diff options
author | emmauss <emmausssss@gmail.com> | 2020-09-29 21:32:42 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-29 23:32:42 +0200 |
commit | 26319d5ab3a4d2f93fc7acb70760d9f96575ee07 (patch) | |
tree | 797d5d828785813d141949decacd6d55f0d4dc0e /Ryujinx/Motion/Protocol/Header.cs | |
parent | a6f8a0b01ed3c36d537825de4c27acdec4e7d638 (diff) |
Add Motion controls (#1363)
* Add motion controls
Apply suggestions from code review
Co-authored-by: Ac_K <Acoustik666@gmail.com>
* cleanup
* add reference orientation and derive relative orientation from it
* cleanup
* remove unused variable and strange file
* Review_2.
* change GetInput to TryGetInput
* Review_3.
Co-authored-by: Ac_K <Acoustik666@gmail.com>
Co-authored-by: LDj3SNuD <dvitiello@gmail.com>
Diffstat (limited to 'Ryujinx/Motion/Protocol/Header.cs')
-rw-r--r-- | Ryujinx/Motion/Protocol/Header.cs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Ryujinx/Motion/Protocol/Header.cs b/Ryujinx/Motion/Protocol/Header.cs new file mode 100644 index 00000000..1f6ea705 --- /dev/null +++ b/Ryujinx/Motion/Protocol/Header.cs @@ -0,0 +1,14 @@ +using System.Runtime.InteropServices; + +namespace Ryujinx.Motion +{ + [StructLayout(LayoutKind.Sequential, Pack = 1)] + public struct Header + { + public uint MagicString; + public ushort Version; + public ushort Length; + public uint Crc32; + public uint ID; + } +} |