Added SteamUtils.SetGameLauncherMode

This commit is contained in:
Garry Newman 2021-09-24 14:36:48 +01:00
parent 3b0fa8106c
commit 480137a490
2 changed files with 14 additions and 0 deletions

View File

@ -282,5 +282,17 @@ public string FilterText( TextFilteringContext context, SteamId sourceSteamID, s
/// returns true if Steam itself is running on the Steam Deck
/// </summary>
public bool IsRunningOnSteamDeck => Internal.IsSteamRunningOnSteamDeck();
/// <summary>
/// In game launchers that don't have controller support you can call this to have
/// Steam Input translate the controller input into mouse/kb to navigate the launcher
/// </summary>
public void SetGameLauncherMode( bool mode ) => Internal.SetGameLauncherMode( mode );
//public void ShowFloatingGamepadTextInput( TextInputMode mode, int left, int top, int width, int height )
//{
// Internal.ShowFloatingGamepadTextInput( mode, left, top, width, height );
//}
}
}

View File

@ -62,6 +62,7 @@ public static string ConvertType( string type )
type = type.Replace( "SteamIPAddress_t", "SteamIPAddress" );
type = type.Replace( "SteamNetworkingQuickConnectionStatus", "ConnectionStatus" );
type = type.Replace( "SteamInputGlyphSize", "GlyphSize" );
type = type.Replace( "FloatingGamepadTextInputMode", "TextInputMode" );
type = type.Replace( "::", "." );
@ -148,6 +149,7 @@ internal static string Expose( string name )
if ( name == "OverlayToStoreFlag" ) return "public";
if ( name == "TextFilteringContext" ) return "public";
if ( name == "GlyphSize" ) return "public";
if ( name == "TextInputMode" ) return "public";
return "internal";
}