aboutsummaryrefslogtreecommitdiff
path: root/include/libsurvive/survive_types.h
diff options
context:
space:
mode:
authorJustin Berger <j.david.berger@gmail.com>2018-03-22 09:51:01 -0600
committerJustin Berger <j.david.berger@gmail.com>2018-03-22 09:53:51 -0600
commit3a0c6bbd603e9420ef2d8eaf9e3b71f7ddd6538a (patch)
tree8c214b1c4096bb9fc98388b7a20ca7c3310b5684 /include/libsurvive/survive_types.h
parent86129fa6b1b1421babad0ecb03369ae88d2cabdb (diff)
downloadlibsurvive-3a0c6bbd603e9420ef2d8eaf9e3b71f7ddd6538a.tar.gz
libsurvive-3a0c6bbd603e9420ef2d8eaf9e3b71f7ddd6538a.tar.bz2
Made disambiguator configurable
Diffstat (limited to 'include/libsurvive/survive_types.h')
-rw-r--r--include/libsurvive/survive_types.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/libsurvive/survive_types.h b/include/libsurvive/survive_types.h
index 3ea6253..160adda 100644
--- a/include/libsurvive/survive_types.h
+++ b/include/libsurvive/survive_types.h
@@ -53,6 +53,16 @@ typedef void (*raw_pose_func)(SurviveObject *so, uint8_t lighthouse, SurvivePose
typedef void (*lighthouse_pose_func)(SurviveContext *ctx, uint8_t lighthouse, SurvivePose *lighthouse_pose,
SurvivePose *object_pose);
+// For lightcap, etc. Don't change this structure at all. Regular vive is dependent on it being exactly as-is.
+// When you write drivers, you can use this to send survive lightcap data.
+typedef struct {
+ uint8_t sensor_id;
+ uint16_t length;
+ uint32_t timestamp;
+} LightcapElement;
+
+typedef void (*handle_lightcap_func)(SurviveObject *so, LightcapElement *le);
+
typedef int(*haptic_func)(SurviveObject * so, uint8_t reserved, uint16_t pulseHigh , uint16_t pulseLow, uint16_t repeatCount);
//Device drivers (prefix your drivers with "DriverReg") i.e.