From b84a5a88f94012aaf6534c36b028de98efdfac55 Mon Sep 17 00:00:00 2001 From: MadDave666 Date: Mon, 22 May 2023 13:16:29 +0200 Subject: [PATCH] added missing (well, commented-out) ShowFloatingGamepadTextInput verified, works on SteamDeck --- Facepunch.Steamworks/SteamUtils.cs | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Facepunch.Steamworks/SteamUtils.cs b/Facepunch.Steamworks/SteamUtils.cs index 8d2c45e..0ba9b36 100644 --- a/Facepunch.Steamworks/SteamUtils.cs +++ b/Facepunch.Steamworks/SteamUtils.cs @@ -296,9 +296,14 @@ namespace Steamworks /// public static 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 ); - //} + /// + /// Opens a floating keyboard over the game content and sends OS keyboard keys directly to the game. + /// The text field position is specified in pixels relative the origin of the game window and is used to + /// position the floating keyboard in a way that doesn't cover the text field. + /// + public static void ShowFloatingGamepadTextInput( TextInputMode mode, int left, int top, int width, int height ) + { + Internal.ShowFloatingGamepadTextInput( mode, left, top, width, height ); + } } }