From 480137a490f5abc252cdec55fbb0b4361279f0cf Mon Sep 17 00:00:00 2001 From: Garry Newman Date: Fri, 24 Sep 2021 14:36:48 +0100 Subject: [PATCH] Added SteamUtils.SetGameLauncherMode --- Facepunch.Steamworks/SteamUtils.cs | 12 ++++++++++++ Generator/Cleanup.cs | 2 ++ 2 files changed, 14 insertions(+) diff --git a/Facepunch.Steamworks/SteamUtils.cs b/Facepunch.Steamworks/SteamUtils.cs index 312ac18..0f3535e 100644 --- a/Facepunch.Steamworks/SteamUtils.cs +++ b/Facepunch.Steamworks/SteamUtils.cs @@ -282,5 +282,17 @@ public string FilterText( TextFilteringContext context, SteamId sourceSteamID, s /// returns true if Steam itself is running on the Steam Deck /// public bool IsRunningOnSteamDeck => Internal.IsSteamRunningOnSteamDeck(); + + + /// + /// 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 + /// + 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 ); + //} } } diff --git a/Generator/Cleanup.cs b/Generator/Cleanup.cs index 59aa9ae..d4e5975 100644 --- a/Generator/Cleanup.cs +++ b/Generator/Cleanup.cs @@ -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"; }