public void Set(GetToggleFriendsKeyOptions other)
 {
     if (other != null)
     {
         m_ApiVersion = UIInterface.GettogglefriendskeyApiLatest;
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// Returns 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" />)`.
        /// </summary>
        /// <param name="options">Structure containing any options that are needed to retrieve the key.</param>
        /// <returns>
        /// A valid key combination which represent a single key with zero or more modifier keys.
        /// <see cref="KeyCombination.None" /> will be returned if any error occurs.
        /// </returns>
        public KeyCombination GetToggleFriendsKey(GetToggleFriendsKeyOptions options)
        {
            System.IntPtr optionsAddress = new System.IntPtr();
            Helper.TryMarshalSet <GetToggleFriendsKeyOptionsInternal, GetToggleFriendsKeyOptions>(ref optionsAddress, options);

            var funcResult = EOS_UI_GetToggleFriendsKey(InnerHandle, optionsAddress);

            Helper.TryMarshalDispose(ref optionsAddress);

            return(funcResult);
        }