diff options
| author | Caian Benedicto <caianbene@gmail.com> | 2021-02-10 21:28:44 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-11 01:28:44 +0100 |
| commit | f16d7f91f1e0483a55c23382171bb81a679e4d8c (patch) | |
| tree | b3c05d649c3cb2451a958931d26c4748a77dc1fa /Ryujinx.HLE/HOS/Applets/SoftwareKeyboard/InlineKeyboardRequest.cs | |
| parent | e28a924501b7b94c8b5f42af5b5d44b47e6b82df (diff) | |
Improve inline keyboard compatibility (#1959)
* Improve compatibility of the inline keyboard with some games
* Send an empty first text to avoid crashing some games
* Implement SetCustomizedDictionaries and fix SetCustomizeDic
* Expand Bg and Fg abbreviations in the swkbd applet
* Fix variable names and add comments to software keyboard
Diffstat (limited to 'Ryujinx.HLE/HOS/Applets/SoftwareKeyboard/InlineKeyboardRequest.cs')
| -rw-r--r-- | Ryujinx.HLE/HOS/Applets/SoftwareKeyboard/InlineKeyboardRequest.cs | 48 |
1 files changed, 39 insertions, 9 deletions
diff --git a/Ryujinx.HLE/HOS/Applets/SoftwareKeyboard/InlineKeyboardRequest.cs b/Ryujinx.HLE/HOS/Applets/SoftwareKeyboard/InlineKeyboardRequest.cs index d0024001..b17debfc 100644 --- a/Ryujinx.HLE/HOS/Applets/SoftwareKeyboard/InlineKeyboardRequest.cs +++ b/Ryujinx.HLE/HOS/Applets/SoftwareKeyboard/InlineKeyboardRequest.cs @@ -1,18 +1,48 @@ namespace Ryujinx.HLE.HOS.Applets.SoftwareKeyboard { /// <summary> - /// Possible requests to the keyboard when running in inline mode. + /// Possible requests to the software keyboard when running in inline mode. /// </summary> enum InlineKeyboardRequest : uint { - Unknown0 = 0x0, - Finalize = 0x4, - SetUserWordInfo = 0x6, - SetCustomizeDic = 0x7, - Calc = 0xA, - SetCustomizedDictionaries = 0xB, + /// <summary> + /// Finalize the keyboard applet. + /// </summary> + Finalize = 0x4, + + /// <summary> + /// Set user words for text prediction. + /// </summary> + SetUserWordInfo = 0x6, + + /// <summary> + /// Sets the CustomizeDic data. Can't be used if CustomizedDictionaries is already set. + /// </summary> + SetCustomizeDic = 0x7, + + /// <summary> + /// Configure the keyboard applet and put it in a state where it is processing input. + /// </summary> + Calc = 0xA, + + /// <summary> + /// Set custom dictionaries for text prediction. Can't be used if SetCustomizeDic is already set. + /// </summary> + SetCustomizedDictionaries = 0xB, + + /// <summary> + /// Release custom dictionaries data. + /// </summary> UnsetCustomizedDictionaries = 0xC, - UseChangedStringV2 = 0xD, - UseMovedCursorV2 = 0xE + + /// <summary> + /// [8.0.0+] Request the keyboard applet to use the ChangedStringV2 response when notifying changes in text data. + /// </summary> + UseChangedStringV2 = 0xD, + + /// <summary> + /// [8.0.0+] Request the keyboard applet to use the MovedCursorV2 response when notifying changes in cursor position. + /// </summary> + UseMovedCursorV2 = 0xE } } |
