Exemplo n.º 1
0
 public static bool ShowGamepadTextInput(EGamepadTextInputMode eInputMode, EGamepadTextInputLineMode eLineInputMode, string pchDescription, uint unCharMax, string pchExistingText)
 {
     InteropHelp.TestIfAvailableGameServer();
     using InteropHelp.UTF8StringHandle pchDescription2  = new InteropHelp.UTF8StringHandle(pchDescription);
     using InteropHelp.UTF8StringHandle pchExistingText2 = new InteropHelp.UTF8StringHandle(pchExistingText);
     return(NativeMethods.ISteamUtils_ShowGamepadTextInput(CSteamGameServerAPIContext.GetSteamUtils(), eInputMode, eLineInputMode, pchDescription2, unCharMax, pchExistingText2));
 }
Exemplo n.º 2
0
 /// <summary>
 /// <para> Activates the Big Picture text input dialog which only supports gamepad input</para>
 /// </summary>
 public static bool ShowGamepadTextInput(EGamepadTextInputMode eInputMode, EGamepadTextInputLineMode eLineInputMode, string pchDescription, uint unCharMax, string pchExistingText)
 {
     InteropHelp.TestIfAvailableClient();
     using (var pchDescription2 = new InteropHelp.UTF8StringHandle(pchDescription))
         using (var pchExistingText2 = new InteropHelp.UTF8StringHandle(pchExistingText)) {
             return(NativeMethods.ISteamUtils_ShowGamepadTextInput(eInputMode, eLineInputMode, pchDescription2, unCharMax, pchExistingText2));
         }
 }
Exemplo n.º 3
0
 /// <summary>
 /// <para> Activates the Big Picture text input dialog which only supports gamepad input</para>
 /// </summary>
 public static bool ShowGamepadTextInput(EGamepadTextInputMode eInputMode, EGamepadTextInputLineMode eLineInputMode, string Description, uint unCharMax, string ExistingText)
 {
     InteropHelp.TestIfAvailableGameServer();
     using (var Description2 = new InteropHelp.UTF8StringHandle(Description))
         using (var ExistingText2 = new InteropHelp.UTF8StringHandle(ExistingText)) {
             return(NativeMethods.ISteamGameServerUtils_ShowGamepadTextInput(eInputMode, eLineInputMode, Description2, unCharMax, ExistingText2));
         }
 }
Exemplo n.º 4
0
        public static bool ShowGamepadTextInput(EGamepadTextInputMode eInputMode, EGamepadTextInputLineMode eLineInputMode, string pchDescription, uint unCharMax, string pchExistingText)
        {
            InteropHelp.TestIfAvailableClient();
            bool result;

            using (InteropHelp.UTF8StringHandle uTF8StringHandle = new InteropHelp.UTF8StringHandle(pchDescription))
            {
                using (InteropHelp.UTF8StringHandle uTF8StringHandle2 = new InteropHelp.UTF8StringHandle(pchExistingText))
                {
                    result = NativeMethods.ISteamUtils_ShowGamepadTextInput(eInputMode, eLineInputMode, uTF8StringHandle, unCharMax, uTF8StringHandle2);
                }
            }
            return(result);
        }
Exemplo n.º 5
0
        public static bool ShowGamepadTextInput(EGamepadTextInputMode eInputMode, EGamepadTextInputLineMode eLineInputMode, string pchDescription, uint unCharMax, string pchExistingText)
        {
            bool flag;

            InteropHelp.TestIfAvailableGameServer();
            using (InteropHelp.UTF8StringHandle handle = new InteropHelp.UTF8StringHandle(pchDescription))
            {
                using (InteropHelp.UTF8StringHandle handle2 = new InteropHelp.UTF8StringHandle(pchExistingText))
                {
                    flag = NativeMethods.ISteamGameServerUtils_ShowGamepadTextInput(eInputMode, eLineInputMode, handle, unCharMax, handle2);
                }
            }
            return(flag);
        }
Exemplo n.º 6
0
 // Activates the Big Picture text input dialog which only supports gamepad input
 public static bool ShowGamepadTextInput(EGamepadTextInputMode eInputMode, EGamepadTextInputLineMode eLineInputMode, string pchDescription, uint unCharMax, string pchExistingText)
 {
     InteropHelp.TestIfAvailableGameServer();
     return(NativeMethods.ISteamGameServerUtils_ShowGamepadTextInput(eInputMode, eLineInputMode, pchDescription, unCharMax, pchExistingText));
 }
Exemplo n.º 7
0
 public bool ShowGamepadTextInput(EGamepadTextInputMode eInputMode, EGamepadTextInputLineMode eInputLineMode, string szText, UInt32 uMaxLength)
 {
     return(this.GetFunction <NativeShowGamepadTextInputEESU>(this.Functions.ShowGamepadTextInput28)(this.ObjectAddress, eInputMode, eInputLineMode, szText, uMaxLength));
 }
		/// <summary>
		/// <para> Activates the Big Picture text input dialog which only supports gamepad input</para>
		/// </summary>
		public static bool ShowGamepadTextInput(EGamepadTextInputMode eInputMode, EGamepadTextInputLineMode eLineInputMode, string pchDescription, uint unCharMax, string pchExistingText) {
			InteropHelp.TestIfAvailableGameServer();
			return NativeMethods.ISteamGameServerUtils_ShowGamepadTextInput(eInputMode, eLineInputMode, pchDescription, unCharMax, pchExistingText);
		}
Exemplo n.º 9
0
		public static extern bool ISteamGameServerUtils_ShowGamepadTextInput(EGamepadTextInputMode eInputMode, EGamepadTextInputLineMode eLineInputMode, InteropHelp.UTF8StringHandle pchDescription, uint unCharMax, InteropHelp.UTF8StringHandle pchExistingText);
		/// <summary>
		/// <para> Activates the Big Picture text input dialog which only supports gamepad input</para>
		/// </summary>
		public static bool ShowGamepadTextInput(EGamepadTextInputMode eInputMode, EGamepadTextInputLineMode eLineInputMode, string pchDescription, uint unCharMax, string pchExistingText) {
			InteropHelp.TestIfAvailableGameServer();
			using (var pchDescription2 = new InteropHelp.UTF8StringHandle(pchDescription))
			using (var pchExistingText2 = new InteropHelp.UTF8StringHandle(pchExistingText)) {
				return NativeMethods.ISteamGameServerUtils_ShowGamepadTextInput(eInputMode, eLineInputMode, pchDescription2, unCharMax, pchExistingText2);
			}
		}
Exemplo n.º 11
0
 public static void PromptForString(EGamepadTextInputMode eInputMode, EGamepadTextInputLineMode eLineInputMode, string pchDescription, uint unCharMax, string pchExistingText, Action <string> callback)
 {
     pendingCallback = callback;
     OpenVR.Overlay.ShowKeyboard((int)eInputMode, (int)eLineInputMode, pchDescription, unCharMax, pchExistingText, false, 0L);
 }
Exemplo n.º 12
0
 public static bool ShowGamepadTextInput(EGamepadTextInputMode eInputMode, EGamepadTextInputLineMode eLineInputMode, string pchDescription, uint unCharMax, string pchExistingText)
 {
     InteropHelp.TestIfAvailableClient();
     bool result;
     using (InteropHelp.UTF8StringHandle uTF8StringHandle = new InteropHelp.UTF8StringHandle(pchDescription))
     {
         using (InteropHelp.UTF8StringHandle uTF8StringHandle2 = new InteropHelp.UTF8StringHandle(pchExistingText))
         {
             result = NativeMethods.ISteamUtils_ShowGamepadTextInput(eInputMode, eLineInputMode, uTF8StringHandle, unCharMax, uTF8StringHandle2);
         }
     }
     return result;
 }
 ///  Activates the Big Picture text input dialog which only supports gamepad input
 public static bool ShowGamepadTextInput(EGamepadTextInputMode eInputMode, EGamepadTextInputLineMode eLineInputMode, string pchDescription, uint unCharMax, string pchExistingText)
 {
     return(false);
 }
Exemplo n.º 14
0
 public bool ShowGamepadTextInput(EGamepadTextInputMode eInputMode, EGamepadTextInputLineMode eInputLineMode, string pchDescription, UInt32 unCharMax, string pchExistingText)
 {
     return(this.GetFunction <NativeShowGamepadTextInputEESUS>(this.Functions.ShowGamepadTextInput20)(this.ObjectAddress, eInputMode, eInputLineMode, pchDescription, unCharMax, pchExistingText));
 }