aboutsummaryrefslogtreecommitdiff
path: root/bindings/cs/libsurvive.net/LibSurViveAPI.cs
diff options
context:
space:
mode:
Diffstat (limited to 'bindings/cs/libsurvive.net/LibSurViveAPI.cs')
-rw-r--r--bindings/cs/libsurvive.net/LibSurViveAPI.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/bindings/cs/libsurvive.net/LibSurViveAPI.cs b/bindings/cs/libsurvive.net/LibSurViveAPI.cs
index 48336e8..aa2fdae 100644
--- a/bindings/cs/libsurvive.net/LibSurViveAPI.cs
+++ b/bindings/cs/libsurvive.net/LibSurViveAPI.cs
@@ -5,6 +5,7 @@ using System.Collections.Generic;
using libsurvive;
using System;
using System.Threading;
+using System.Runtime.InteropServices;
public class LibSurViveAPI
{
@@ -108,7 +109,7 @@ public class LibSurViveAPI
SetupConfigs configs = new SetupConfigs
{
- playbaskFile = "P:/c/libsurvive-data/lightcap-reformat/lightcap-reformat.log",
+ playbaskFile = @"C:\Users\justin\source\libsurvive-win-update\bindings\cs\Demo\lightcap-reformat.log",
configFile = "survive_conf.json",
playbackFactor = 1
};
@@ -320,8 +321,10 @@ public class SurviveObject
{
throw new Exception("Can't create SurviveObject with 0 pointer");
}
+ var ptr1 = cfunctions.Survive_object_pose(ptr);
+ pose = (SurvivePose)Marshal.PtrToStructure(ptr1, typeof(SurvivePose));
- //pose = cfunctions.Survive_object_pose(ptr);
+ //pose =
charge = cfunctions.Survive_object_charge(ptr);
charging = cfunctions.Survive_object_charging(ptr);
}