Added support for FilterText

This commit is contained in:
Koen Mulder 2021-01-05 18:28:45 +01:00
parent 31ffaa3e6e
commit 81c5ca7761
2 changed files with 16 additions and 1 deletions

View File

@ -752,7 +752,7 @@ public enum GamepadTextInputLineMode : int
// //
// ETextFilteringContext // ETextFilteringContext
// //
internal enum TextFilteringContext : int public enum TextFilteringContext : int
{ {
Unknown = 0, Unknown = 0,
GameContent = 1, GameContent = 1,

View File

@ -261,5 +261,20 @@ internal static bool IsCallComplete( SteamAPICall_t call, out bool failed )
/// Returns whether this steam client is a Steam China specific client, vs the global client /// Returns whether this steam client is a Steam China specific client, vs the global client
/// </summary> /// </summary>
public static bool IsSteamChinaLauncher => Internal.IsSteamChinaLauncher(); public static bool IsSteamChinaLauncher => Internal.IsSteamChinaLauncher();
/// <summary>
/// Initializes text filtering, loading dictionaries for the language the game is running in.
/// Users can customize the text filter behavior in their Steam Account preferences
/// </summary>
public static bool InitFilterText( uint unFilterOptions ) => Internal.InitFilterText( unFilterOptions );
/// <summary>
/// Filters the provided input message and places the filtered result into pchOutFilteredText,
/// using legally required filtering and additional filtering based on the context and user settings.
/// </summary>
public int FilterText( TextFilteringContext eContext, SteamId sourceSteamID, string pchInputMessage, out string pchOutFilteredText )
{
return Internal.FilterText( eContext, sourceSteamID, pchInputMessage, out pchOutFilteredText );
}
} }
} }