mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-12-25 02:25:45 +00:00
f16d7f91f1
* 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
34 lines
928 B
C#
34 lines
928 B
C#
using System.Runtime.InteropServices;
|
|
|
|
namespace Ryujinx.HLE.HOS.Applets.SoftwareKeyboard
|
|
{
|
|
/// <summary>
|
|
/// A structure with custom dictionary words for the software keyboard.
|
|
/// </summary>
|
|
[StructLayout(LayoutKind.Sequential, Pack = 2)]
|
|
struct SoftwareKeyboardDictSet
|
|
{
|
|
/// <summary>
|
|
/// A 0x1000-byte aligned buffer position.
|
|
/// </summary>
|
|
public ulong BufferPosition;
|
|
|
|
/// <summary>
|
|
/// A 0x1000-byte aligned buffer size.
|
|
/// </summary>
|
|
public uint BufferSize;
|
|
|
|
/// <summary>
|
|
/// Array of word entries in the buffer.
|
|
/// </summary>
|
|
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 24)]
|
|
public ulong[] Entries;
|
|
|
|
/// <summary>
|
|
/// Number of used entries in the Entries field.
|
|
/// </summary>
|
|
public ushort TotalEntries;
|
|
|
|
public ushort Padding1;
|
|
}
|
|
}
|