コード例 #1
0
 internal static void InstallEvents()
 {
     IPCountry_t.Install(x => OnIpCountryChanged?.Invoke());
     LowBatteryPower_t.Install(x => OnLowBatteryPower?.Invoke(x.MinutesBatteryLeft));
     SteamShutdown_t.Install(x => SteamClosed());
     GamepadTextInputDismissed_t.Install(x => OnGamepadTextInputDismissed?.Invoke(x.Submitted));
 }
コード例 #2
0
 internal static void InstallEvents()
 {
     IPCountry_t.Install((IPCountry_t x) => {
         Action onIpCountryChanged = SteamUtils.OnIpCountryChanged;
         if (onIpCountryChanged != null)
         {
             onIpCountryChanged();
         }
         else
         {
         }
     }, false);
     LowBatteryPower_t.Install((LowBatteryPower_t x) => {
         Action <int> onLowBatteryPower = SteamUtils.OnLowBatteryPower;
         if (onLowBatteryPower != null)
         {
             onLowBatteryPower(x.MinutesBatteryLeft);
         }
         else
         {
         }
     }, false);
     SteamShutdown_t.Install((SteamShutdown_t x) => {
         Action onSteamShutdown = SteamUtils.OnSteamShutdown;
         if (onSteamShutdown != null)
         {
             onSteamShutdown();
         }
         else
         {
         }
     }, false);
     GamepadTextInputDismissed_t.Install((GamepadTextInputDismissed_t x) => {
         Action <bool> onGamepadTextInputDismissed = SteamUtils.OnGamepadTextInputDismissed;
         if (onGamepadTextInputDismissed != null)
         {
             onGamepadTextInputDismissed(x.Submitted);
         }
         else
         {
         }
     }, false);
 }
コード例 #3
0
	void OnGamepadTextInputDismissed(GamepadTextInputDismissed_t pCallback) {
		Debug.Log("[" + GamepadTextInputDismissed_t.k_iCallback + " - GamepadTextInputDismissed] - " + pCallback.m_bSubmitted + " -- " + pCallback.m_unSubmittedText);
	}
コード例 #4
-1
	void OnGamepadTextInputDismissed(GamepadTextInputDismissed_t pCallback) {
		Debug.Log("[" + GamepadTextInputDismissed_t.k_iCallback + " - GamepadTextInputDismissed] - " + pCallback.m_bSubmitted + " -- " + pCallback.m_unSubmittedText);

		if(pCallback.m_bSubmitted) {
			uint Length = SteamUtils.GetEnteredGamepadTextLength();
			Debug.Log("SteamUtils.GetEnteredGamepadTextLength() - " + Length);

			string Text;
			bool ret = SteamUtils.GetEnteredGamepadTextInput(out Text, 32);
			Debug.Log("SteamUtils.GetEnteredGamepadTextInput(out Text, 32) - " + ret + " -- " + Text);
		}
	}