aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/Input/Keyboard
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.HLE/Input/Keyboard')
-rw-r--r--Ryujinx.HLE/Input/Keyboard/Keyboard.cs8
-rw-r--r--Ryujinx.HLE/Input/Keyboard/KeyboardEntry.cs15
-rw-r--r--Ryujinx.HLE/Input/Keyboard/KeyboardHeader.cs13
3 files changed, 36 insertions, 0 deletions
diff --git a/Ryujinx.HLE/Input/Keyboard/Keyboard.cs b/Ryujinx.HLE/Input/Keyboard/Keyboard.cs
new file mode 100644
index 00000000..7220e518
--- /dev/null
+++ b/Ryujinx.HLE/Input/Keyboard/Keyboard.cs
@@ -0,0 +1,8 @@
+namespace Ryujinx.HLE.Input
+{
+ public struct Keyboard
+ {
+ public int Modifier;
+ public int[] Keys;
+ }
+} \ No newline at end of file
diff --git a/Ryujinx.HLE/Input/Keyboard/KeyboardEntry.cs b/Ryujinx.HLE/Input/Keyboard/KeyboardEntry.cs
new file mode 100644
index 00000000..be7d9399
--- /dev/null
+++ b/Ryujinx.HLE/Input/Keyboard/KeyboardEntry.cs
@@ -0,0 +1,15 @@
+using System.Runtime.InteropServices;
+
+namespace Ryujinx.HLE.Input
+{
+ [StructLayout(LayoutKind.Sequential)]
+ public struct KeyboardEntry
+ {
+ public long SamplesTimestamp;
+ public long SamplesTimestamp2;
+ public long Modifier;
+
+ [MarshalAs(UnmanagedType.ByValArray , SizeConst = 0x8)]
+ public int[] Keys;
+ }
+}
diff --git a/Ryujinx.HLE/Input/Keyboard/KeyboardHeader.cs b/Ryujinx.HLE/Input/Keyboard/KeyboardHeader.cs
new file mode 100644
index 00000000..882ccbab
--- /dev/null
+++ b/Ryujinx.HLE/Input/Keyboard/KeyboardHeader.cs
@@ -0,0 +1,13 @@
+using System.Runtime.InteropServices;
+
+namespace Ryujinx.HLE.Input
+{
+ [StructLayout(LayoutKind.Sequential)]
+ public struct KeyboardHeader
+ {
+ public long Timestamp;
+ public long EntryCount;
+ public long CurrentEntryIndex;
+ public long MaxEntries;
+ }
+}