vr input
[laserbrain_demo] / src / vrinput.h
diff --git a/src/vrinput.h b/src/vrinput.h
new file mode 100644 (file)
index 0000000..1ab89a1
--- /dev/null
@@ -0,0 +1,23 @@
+#ifndef VRINPUT_H_
+#define VRINPUT_H_
+
+#include <gmath/gmath.h>
+#include <goatvr.h>
+
+struct VRHand {
+       bool valid;
+       Vec3 pos;
+       Quat rot;
+       Mat4 xform;     /* combination of the above */
+       goatvr_source *src;
+};
+
+extern VRHand vrhand[2];
+
+bool init_vrhands();
+void destroy_vrhands();
+
+void update_vrhands();
+void draw_vrhands();
+
+#endif /* VRINPUT_H_ */