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/InlineKeyboardState.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/InlineKeyboardState.cs')
-rw-r--r-- | Ryujinx.HLE/HOS/Applets/SoftwareKeyboard/InlineKeyboardState.cs | 27 |
1 files changed, 23 insertions, 4 deletions
diff --git a/Ryujinx.HLE/HOS/Applets/SoftwareKeyboard/InlineKeyboardState.cs b/Ryujinx.HLE/HOS/Applets/SoftwareKeyboard/InlineKeyboardState.cs index 2940d161..024ff2cf 100644 --- a/Ryujinx.HLE/HOS/Applets/SoftwareKeyboard/InlineKeyboardState.cs +++ b/Ryujinx.HLE/HOS/Applets/SoftwareKeyboard/InlineKeyboardState.cs @@ -1,14 +1,33 @@ namespace Ryujinx.HLE.HOS.Applets.SoftwareKeyboard { /// <summary> - /// Possible states for the keyboard when running in inline mode. + /// Possible states for the software keyboard when running in inline mode. /// </summary> enum InlineKeyboardState : uint { + /// <summary> + /// The software keyboard has just been created or finalized and is uninitialized. + /// </summary> Uninitialized = 0x0, - Initializing = 0x1, - Ready = 0x2, + + /// <summary> + /// A Calc was previously received and fulfilled, so the software keyboard is initialized, but is not processing input. + /// </summary> + Initialized = 0x1, + + /// <summary> + /// A Calc was received and the software keyboard is processing input. + /// </summary> + Ready = 0x2, + + /// <summary> + /// New text data or cursor position of the software keyboard are available. + /// </summary> DataAvailable = 0x3, - Completed = 0x4 + + /// <summary> + /// The Calc request was fulfilled with either a text input or a cancel. + /// </summary> + Complete = 0x4 } } |