aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.HLE/HOS/Applets/SoftwareKeyboard/SoftwareKeyboardInitialize.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Ryujinx.HLE/HOS/Applets/SoftwareKeyboard/SoftwareKeyboardInitialize.cs')
-rw-r--r--src/Ryujinx.HLE/HOS/Applets/SoftwareKeyboard/SoftwareKeyboardInitialize.cs26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/Ryujinx.HLE/HOS/Applets/SoftwareKeyboard/SoftwareKeyboardInitialize.cs b/src/Ryujinx.HLE/HOS/Applets/SoftwareKeyboard/SoftwareKeyboardInitialize.cs
new file mode 100644
index 00000000..764d0e38
--- /dev/null
+++ b/src/Ryujinx.HLE/HOS/Applets/SoftwareKeyboard/SoftwareKeyboardInitialize.cs
@@ -0,0 +1,26 @@
+using System.Runtime.InteropServices;
+
+namespace Ryujinx.HLE.HOS.Applets.SoftwareKeyboard
+{
+ /// <summary>
+ /// A structure that mirrors the parameters used to initialize the keyboard applet.
+ /// </summary>
+ [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
+ struct SoftwareKeyboardInitialize
+ {
+ public uint Unknown;
+
+ /// <summary>
+ /// The applet mode used when launching the swkb. The bits regarding the background vs foreground mode can be wrong.
+ /// </summary>
+ public byte LibMode;
+
+ /// <summary>
+ /// [5.0.0+] Set to 0x1 to indicate a firmware version >= 5.0.0.
+ /// </summary>
+ public byte FivePlus;
+
+ public byte Padding1;
+ public byte Padding2;
+ }
+}