aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.HLE/HOS/Applets/SoftwareKeyboard/InlineKeyboardResponse.cs
blob: ed4b78c8e7c1d9d539fa19c9239e0d2096a05d25 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
namespace Ryujinx.HLE.HOS.Applets.SoftwareKeyboard
{
    /// <summary>
    /// Possible responses from the software keyboard when running in inline mode.
    /// </summary>
    enum InlineKeyboardResponse : uint
    {
        /// <summary>
        /// The software keyboard received a Calc and it is fully initialized. Reply data is ignored by the user-process.
        /// </summary>
        FinishedInitialize = 0x0,

        /// <summary>
        /// Default response. Official sw has no handling for this besides just closing the storage.
        /// </summary>
        Default = 0x1,

        /// <summary>
        /// The text data in the software keyboard changed (UTF-16 encoding).
        /// </summary>
        ChangedString = 0x2,

        /// <summary>
        /// The cursor position in the software keyboard changed (UTF-16 encoding).
        /// </summary>
        MovedCursor = 0x3,

        /// <summary>
        /// A tab in the software keyboard changed.
        /// </summary>
        MovedTab = 0x4,

        /// <summary>
        /// The OK key was pressed in the software keyboard, confirming the input text (UTF-16 encoding).
        /// </summary>
        DecidedEnter = 0x5,

        /// <summary>
        /// The Cancel key was pressed in the software keyboard, cancelling the input.
        /// </summary>
        DecidedCancel = 0x6,

        /// <summary>
        /// Same as ChangedString, but with UTF-8 encoding.
        /// </summary>
        ChangedStringUtf8 = 0x7,

        /// <summary>
        /// Same as MovedCursor, but with UTF-8 encoding.
        /// </summary>
        MovedCursorUtf8 = 0x8,

        /// <summary>
        /// Same as DecidedEnter, but with UTF-8 encoding.
        /// </summary>
        DecidedEnterUtf8 = 0x9,

        /// <summary>
        /// They software keyboard is releasing the data previously set by a SetCustomizeDic request.
        /// </summary>
        UnsetCustomizeDic = 0xA,

        /// <summary>
        /// They software keyboard is releasing the data previously set by a SetUserWordInfo request.
        /// </summary>
        ReleasedUserWordInfo = 0xB,

        /// <summary>
        /// They software keyboard is releasing the data previously set by a SetCustomizedDictionaries request.
        /// </summary>
        UnsetCustomizedDictionaries = 0xC,

        /// <summary>
        /// Same as ChangedString, but with additional fields.
        /// </summary>
        ChangedStringV2 = 0xD,

        /// <summary>
        /// Same as MovedCursor, but with additional fields.
        /// </summary>
        MovedCursorV2 = 0xE,

        /// <summary>
        /// Same as ChangedStringUtf8, but with additional fields.
        /// </summary>
        ChangedStringUtf8V2 = 0xF,

        /// <summary>
        /// Same as MovedCursorUtf8, but with additional fields.
        /// </summary>
        MovedCursorUtf8V2 = 0x10,
    }
}