SoftwareKeyboardConfig.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. using System.Runtime.InteropServices;
  2. namespace Ryujinx.HLE.HOS.Applets.SoftwareKeyboard
  3. {
  4. // TODO(jduncanator): Define all fields
  5. [StructLayout(LayoutKind.Explicit)]
  6. struct SoftwareKeyboardConfig
  7. {
  8. /// <summary>
  9. /// Type of keyboard.
  10. /// </summary>
  11. [FieldOffset(0x0)]
  12. public SoftwareKeyboardType Type;
  13. /// <summary>
  14. /// When non-zero, specifies the max string length. When the input is too long, swkbd will stop accepting more input until text is deleted via the B button (Backspace).
  15. /// </summary>
  16. [FieldOffset(0x3AC)]
  17. public uint StringLengthMax;
  18. /// <summary>
  19. /// When non-zero, specifies the max string length. When the input is too long, swkbd will display an icon and disable the ok-button.
  20. /// </summary>
  21. [FieldOffset(0x3B0)]
  22. public uint StringLengthMaxExtended;
  23. /// <summary>
  24. /// When set, the application will validate the entered text whilst the swkbd is still on screen.
  25. /// </summary>
  26. [FieldOffset(0x3D0), MarshalAs(UnmanagedType.I1)]
  27. public bool CheckText;
  28. }
  29. }