public void Set(SetToggleFriendsKeyOptions other) { if (other != null) { m_ApiVersion = UIInterface.SettogglefriendskeyApiLatest; KeyCombination = other.KeyCombination; } }
/// <summary> /// Updates the current Toggle Friends Key. This key can be used by the user to toggle the friends /// overlay when available. The default value represents `Shift + F3` as `((int32_t)<see cref="KeyCombination.Shift" /> | (int32_t)<see cref="KeyCombination.F3" />)`. /// The provided key should satisfy <see cref="IsValidKeyCombination" />. The value <see cref="KeyCombination.None" /> is specially handled /// by resetting the key binding to the system default. /// <seealso cref="IsValidKeyCombination" /> /// </summary> /// <param name="options">Structure containing the key combination to use.</param> /// <returns> /// <see cref="Result.Success" /> If the overlay has been notified about the request. /// <see cref="Result.InvalidParameters" /> If any of the options are incorrect. /// <see cref="Result.NotConfigured" /> If the overlay is not properly configured. /// <see cref="Result.NoChange" /> If the key combination did not change. /// </returns> public Result SetToggleFriendsKey(SetToggleFriendsKeyOptions options) { System.IntPtr optionsAddress = new System.IntPtr(); Helper.TryMarshalSet <SetToggleFriendsKeyOptionsInternal, SetToggleFriendsKeyOptions>(ref optionsAddress, options); var funcResult = EOS_UI_SetToggleFriendsKey(InnerHandle, optionsAddress); Helper.TryMarshalDispose(ref optionsAddress); return(funcResult); }