InlineKeyboardResponse.cs 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. namespace Ryujinx.HLE.HOS.Applets.SoftwareKeyboard
  2. {
  3. /// <summary>
  4. /// Possible responses from the software keyboard when running in inline mode.
  5. /// </summary>
  6. enum InlineKeyboardResponse : uint
  7. {
  8. /// <summary>
  9. /// The software keyboard received a Calc and it is fully initialized. Reply data is ignored by the user-process.
  10. /// </summary>
  11. FinishedInitialize = 0x0,
  12. /// <summary>
  13. /// Default response. Official sw has no handling for this besides just closing the storage.
  14. /// </summary>
  15. Default = 0x1,
  16. /// <summary>
  17. /// The text data in the software keyboard changed (UTF-16 encoding).
  18. /// </summary>
  19. ChangedString = 0x2,
  20. /// <summary>
  21. /// The cursor position in the software keyboard changed (UTF-16 encoding).
  22. /// </summary>
  23. MovedCursor = 0x3,
  24. /// <summary>
  25. /// A tab in the software keyboard changed.
  26. /// </summary>
  27. MovedTab = 0x4,
  28. /// <summary>
  29. /// The OK key was pressed in the software keyboard, confirming the input text (UTF-16 encoding).
  30. /// </summary>
  31. DecidedEnter = 0x5,
  32. /// <summary>
  33. /// The Cancel key was pressed in the software keyboard, cancelling the input.
  34. /// </summary>
  35. DecidedCancel = 0x6,
  36. /// <summary>
  37. /// Same as ChangedString, but with UTF-8 encoding.
  38. /// </summary>
  39. ChangedStringUtf8 = 0x7,
  40. /// <summary>
  41. /// Same as MovedCursor, but with UTF-8 encoding.
  42. /// </summary>
  43. MovedCursorUtf8 = 0x8,
  44. /// <summary>
  45. /// Same as DecidedEnter, but with UTF-8 encoding.
  46. /// </summary>
  47. DecidedEnterUtf8 = 0x9,
  48. /// <summary>
  49. /// They software keyboard is releasing the data previously set by a SetCustomizeDic request.
  50. /// </summary>
  51. UnsetCustomizeDic = 0xA,
  52. /// <summary>
  53. /// They software keyboard is releasing the data previously set by a SetUserWordInfo request.
  54. /// </summary>
  55. ReleasedUserWordInfo = 0xB,
  56. /// <summary>
  57. /// They software keyboard is releasing the data previously set by a SetCustomizedDictionaries request.
  58. /// </summary>
  59. UnsetCustomizedDictionaries = 0xC,
  60. /// <summary>
  61. /// Same as ChangedString, but with additional fields.
  62. /// </summary>
  63. ChangedStringV2 = 0xD,
  64. /// <summary>
  65. /// Same as MovedCursor, but with additional fields.
  66. /// </summary>
  67. MovedCursorV2 = 0xE,
  68. /// <summary>
  69. /// Same as ChangedStringUtf8, but with additional fields.
  70. /// </summary>
  71. ChangedStringUtf8V2 = 0xF,
  72. /// <summary>
  73. /// Same as MovedCursorUtf8, but with additional fields.
  74. /// </summary>
  75. MovedCursorUtf8V2 = 0x10
  76. }
  77. }