aboutsummaryrefslogtreecommitdiff
path: root/bindings/cs/Demo/Program.cs
diff options
context:
space:
mode:
authorJustin Berger <j.david.berger@gmail.com>2018-04-01 11:48:56 -0600
committerJustin Berger <j.david.berger@gmail.com>2018-04-02 00:11:42 -0600
commit7770495e7f14fe5094b31df5f5976c34fd68a0da (patch)
treeb820aa69c966a87ad09679f4e7dae2a7b717f2b6 /bindings/cs/Demo/Program.cs
parent0eea189db82fc72463a83a678d9b8d609fd09c6e (diff)
downloadlibsurvive-7770495e7f14fe5094b31df5f5976c34fd68a0da.tar.gz
libsurvive-7770495e7f14fe5094b31df5f5976c34fd68a0da.tar.bz2
Fixed marshalling
Diffstat (limited to 'bindings/cs/Demo/Program.cs')
-rw-r--r--bindings/cs/Demo/Program.cs11
1 files changed, 4 insertions, 7 deletions
diff --git a/bindings/cs/Demo/Program.cs b/bindings/cs/Demo/Program.cs
index aa98b6c..53c2307 100644
--- a/bindings/cs/Demo/Program.cs
+++ b/bindings/cs/Demo/Program.cs
@@ -12,13 +12,10 @@ namespace Demo
{
static void Main(string[] args)
{
- SurviveContext context = new SurviveContext(args);
- context.AddPoseUpdateCallback(HMDUpdate, -1);
-
-
- while (context.Poll() == 0) {
- }
-
+ LibSurViveAPI api = LibSurViveAPI.instance;
+
+ var so = api.GetSurviveObjectByName("HMD");
+
}
public static void HMDUpdate(int ObjectID, Vector3 pos)