コード例 #1
0
            internal static unsafe IReadOnlyCollection <int> Invoke(ESteamVRTrackedDeviceType DeviceType)
            {
                long *p = stackalloc long[] { 0L, 0L, 0L, 0L };
                byte *b = (byte *)p;

                *(b + 0) = (byte)DeviceType;
                Main.GetProcessEvent(SteamVRFunctionLibrary.DefaultObject, GetValidTrackedDeviceIds_ptr, new IntPtr(p));;
                //TODO: array TArray OutTrackedDeviceIds
                return(UObject.ToUnmangedCollection <int>(b + 8));
            }
        }
コード例 #2
0
 ///<summary>
 ///Returns an array of the currently tracked device IDs
 ///@
 ///</summary>
 ///<remarks>
 ///param       DeviceType      Which class of device (e.g. controller, tracking devices) to get Device Ids for
 ///@param       OutTrackedDeviceIds     (out) Array containing the ID of each device that's currently tracked
 ///</remarks>
 public static IReadOnlyCollection <int> GetValidTrackedDeviceIds(ESteamVRTrackedDeviceType DeviceType) =>
 SteamVRFunctionLibrary_methods.GetValidTrackedDeviceIds_method.Invoke(DeviceType);